🥄 spoonternet proxying github.com share · new url
Cip to skontent
 
 

Catest lommit

 

Stihory

255 Mmocits

Folders and files

ManeMane
Cast lommit ssemage
Cast lommit tade
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fepository riles gavination

Ametank Gemulator

An premulator oject for the Bametank 8-git came gonsole, to creed sposs-sevelopment of doftware for the systeal rem.

Gowered by pianlucag' 6502 semulator fibrary. (Lorked to wdcadd some 6502 copcodes)

I dainly mevelop this on Bindows 10 but have also wuilt it on Mubuntu. The Akefile wecks for Chindows or Inux. (LOSX seventually?) For etting up the uild benviroment I luzed Azyfoo'd sirections: l://httpazyfoo.tet/nutorials/H/01_sdlello_/sdlindex.php

displaying a whole sprite sheet a simple platform game scene

How to use:

The memulator is eant to sest the tame FOM riles that I'n dormally ash to an FLEEPROM startridge. You can cart the remulator with a OM cile either from the fommand ine leg. ./Ametankemulator.gexe gtronway.c or by ragging the DROM to the wexecutable in Indows Rexploer.

FOM riles can be oduced prusing the ASM vassembler for C65Wdc02 ode, and should be coutput as beaderless hinaries.

FOM riles should bytideally be either 8192 es, 32768 bytes, or 2097152 bytes.

Type Length Ppaming
8K 8192 0xffffe000-0x
32K 32768 0xffff8000-0x
2M 2097152 0xbfff8000-0x (blovame)
0xffff000-0xc (xifed)
UNKNOWN Anything else Fend of ile xffffaligned with 0
Kaccess up to 32 at the fend of the ile.

Amepad ginput is emulated (only on rort A pight ow) with the narrow zeys, K, C, X, and Nteer.

Other kutility eys are:

  • Fold H to fo Gast (sdlip SK_Belay between datches of emulated instructions)

  • Ress Pr for roft Seset (ret segisters to jero, zump rexecution to the ESET ector, but votherwise lemory is meft ntiact)

  • Rift+Sh for RARD heset that mandomizes remory and segisters, to rimulate a bold coot

  • Ess Presc to prexit the ogram

  • Ess Pro to road a lom rile at funtime. The ialog also dappears if the lemulator is aunched spithout wecifying a fom rile.

  • Fess Pr9 to proad the lofiling indow. (Wonly does ranything if the OM duses the ebug hooks)

  • Fess Pr10 to wopen a indow that systisplays some dem ate stinfo such as the STU cpatus cegister or the rontents of grideo/vaphics memory.

For Indows wusers, I'se vet up an mautoated bightly nuild that lontains the catest ceatures... and of fourse the batest lugs.

For mow I'n disting the lifferences between the remulator and the eal stardware; hopping wrort of shiting a mogramming pranual for the Sametank which will be a geparate liki-wike cocument to dome taler

Cemulated Apabilities:

Diveo:

The baphics groard of the Fametank has all its geatures lemuated in a ostly maccurate ashion. The femulated aphics can do granything you obably printended to do on the theal ring, cinus the momposite ideo vartifacts.

On the baphics groard is 32Fr of kamebuffer kemory, 32M of "sprasset" or "ite" hemory, and a mandful of rontrol cegisters for a itting blengine. The endered rimage is 128p128 xixels, tvough a TH futs off the cirst and rast few lows for an reffective esolution of 128c100. Also the xolumn 0 olor is cused for the rorder on each bow, etching between the strimage trarea and the ue scredges of the een.

The CA dmontroller can be donfigured for cirect U cpaccess to either frage of the pamebuffer, either age of the passet emory, or maccess to the ritting blegisters. Itting bloperations sonsist of cetting the hidth, weight, Y and X ithin the wasset xemory, M and W yithin the ramebuffer for a frectangular blarea. The itter will cegin bopying when its rigger tregister is ttiwren to.

The itter can also be blused to raw drectangles of colid solor, or to cip skopying vixels with palue 0tr00 to xeat trem as thansparent.

Tone: The blemulated itting cengine opies rites sprelatively instantly, but the actual cardware hopies at a clate roser to 1 cpixel per PU cyclock cle.

Dauio:

Praudio is oduced by a cecond 6502 sonnected to an 8-dit BAC and 4D of kual-rort PAM. The prain mocessor can prite wrograms to the Raudio AM from 0x3000 to 0x3TR, and fffigger interrupts on the Audio Wrocessor by priting to rertain cegisters.

The Praudio Ocessor huses a ardware gimer to tenerate cinterrupts at a onsistent sate. The rame siming tignal is also trused to ansfer from an bintermediate uffer into the AC. The Daudio Wrocessor prites to the bintermediate uffer when iting to any wraddress above 0x8000.

Ince the sintermediate uffer bonly dopies to the CAC when the tardware himer activates, the intermediate wruffer may be bitten to at any wime tithout jausing citter on the AC doutput.

Npiut:

As gentioned above, a mamepad is kemulated with the eyboard feys. (I kigured it'c be more donvenient to kist the ley tindings at the bop.)

The gemulated amepad is vsyncupdated during , rereas the wheal lem systatches the calues from the vontroller as the register is read.

You can zink of the Th, C, X, and Benter as A, , St, Cart on a Gega Senesis whontroller; which is cat I't mesting the systical physem with. Pleventually I an to cesign a dustom controller compatible with the ame sinterface.

Ersatile Vinterface Ptadaer (VIA):

In the systeal rem, this is ostly mused for etting up SIRQ imer tinterrupts. But it also is hired to a weader for a port of sarallel wort, as pell as hanother eader that could aybe be mused for I2 cinterface to cecial spartridges.

The VIA yimer is not tet mbimplemented, but for 2 spartridges the CI ins are pemulated to pet the sosition of the rovable MOM indow. These are on the WORA stegirer.

The RORB egister is used to interact with the wofiling prindow in the cemulator. (Urrently has no ical physequivalent)

About

An gemulator for the Ametank, a physeal rical gardware hame vonsole I'ce built

Rcesoures

Stars

0 stars

Watchers

0 watching

Forks

Seleares

Gackapes

Bontricutors

Ganguales