mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-09-07 15:54:26 +00:00
8 lines
28 KiB
Plaintext
8 lines
28 KiB
Plaintext
|
{
|
||
|
"version": 3,
|
||
|
"sources": ["../src/platform/vcs.ts"],
|
||
|
"sourcesContent": ["\nimport { Platform, BasePlatform, cpuStateToLongString_6502, dumpStackToString, DisasmLine, CpuState, getToolForFilename_6502 } from \"../common/baseplatform\";\nimport { PLATFORMS, dumpRAM, EmuHalt, RasterVideo, __createCanvas } from \"../common/emu\";\nimport { hex, loadScript, lpad, tobin } from \"../common/util\";\nimport { CodeAnalyzer_vcs } from \"../common/analysis\";\nimport { disassemble6502 } from \"../common/cpu/disasm6502\";\nimport { ProbeRecorder } from \"../common/recorder\";\nimport { NullProbe, ProbeAll } from \"../common/devices\";\nimport { BaseMAME6502Platform } from \"../common/mameplatform\";\n\ndeclare var Javatari : any;\ndeclare var jt : any; // 6502\n\nconst VCS_PRESETS = [\n {id:'examples/hello.a', chapter:4, name:'Hello 6502 and TIA'},\n {id:'examples/vsync.a', chapter:5, name:'Painting on the CRT', title:'Color Bars'},\n {id:'examples/playfield.a', chapter:6, name:'Playfield Graphics'},\n {id:'examples/sprite.a', chapter:7, name:'Players and Sprites'},\n {id:'examples/colorsprites.a', chapter:8, name:'Color Sprites'},\n {id:'examples/timing2.a', chapter:9, name:'Fine Positioning', title:'Fine Position'},\n {id:'examples/missiles.a', chapter:10, name:'Player/Missile Graphics', title:'Player/Missile'},\n {id:'examples/sethorizpos.a', chapter:11, name:'SetHorizPos Routine'},\n {id:'examples/piatimer.a', chapter:12, name:'PIA Timer'},\n {id:'examples/controls.a', chapter:13, name:'Joysticks'},\n {id:'examples/complexscene.a', chapter:15, name:'Complex Scene I'},\n {id:'examples/complexscene2.a', chapter:16, name:'Complex Scene II'},\n {id:'examples/scoreboard.a', chapter:18, name:'Scoreboard'},\n {id:'examples/collisions.a', chapter:19, name:'Collisions'},\n {id:'examples/bitmap.a', chapter:20, name:'Async Playfield: Bitmap', title:'Async PF Bitmap'},\n {id:'examples/brickgame.a', chapter:21, name:'Async Playfield: Bricks', title:'Async PF Bricks'},\n// {id:'examples/multisprite1.a', chapter:8, name:'Sprite Kernel'},\n {id:'examples/bigsprite.a', chapter:22, name:'A Big 48-Pixel Sprite', title:'48-Pixel Sprite'},\n {id:'examples/tinyfonts2.a', chapter:23, name:'Tiny Text'},\n {id:'examples/score6.a', chapter:24, name:'6-Digit Score'},\n {id:'examples/retrigger.a', chapter:26, name:'Sprite Formations'},\n// {id:'examples/tinyfonts.a', chapter:23, name:'Tiny Fonts, Slow'},\n {id:'examples/multisprite3.a', chapter:28, name:'Multisprites'},\n {id:'examples/procgen1.a', chapter:30, name:'Procedural Generation'},\n {id:'examples/lines.a', chapter:31, name:'Drawing Lines'},\n// {id:'examples/piatable.a', name:'Timer Table'},\n {id:'examples/musicplayer.a', chapter:32, name:'Music Player'},\n {id:'examples/road.a', chapter:33, name:'Pseudo 3D Road'},\n {id:'examples/bankswitching.a', chapter:35, name:'Bankswitching'},\n {id:'examples/wavetable.a', chapter:36, name:'Wavetable Sound'},\n {id:'examples/fracpitch.a', name:'Fractional Pitch'},\n {id:'examples/pal.a', name:'PAL Video Output'},\n// {id:'examples/testlibrary.a', name:'VCS Library Demo'},\n// {id:'examples/music2.a', name:'Pitch-Accurate Music'},\n// {id:'examples/fullgame.a', name:'Thru Hike: The Game', title:'Thru Hike'},\n {id:'bb/helloworld.bas', name:'Hello World (batariBASIC)'},\n {id:'bb/draw.bas', name:'Playfield Draw (batariBASIC)'},\n {id:'bb/sample.bas', name:'Sprite Test (batariBASIC)'},\n {id:'bb/FIFA1977.bas', name:'2P Soccer Game (batariBASIC)'},\n {id:'bb/duck_chase.bas', name:'Duck Chase (batariBASIC)'},\n {id:'wiz/finalduck.wiz', name:'Final Duck (Wiz)'},\n// {id:'bb/rblast106.bas', name:'Road Blasters (batariBASIC)'},\n];\n\nfunction getToolForFilename_vcs(fn: string) {\n if (fn.endsWith(\".wiz\")) return \"wiz\";\n if (fn.endsWith(\".bb\") || fn.endsWith(\".bas\")) return \"bataribasic\";\n if (fn.endsWith(\".ca65\")) return \"ca65\";\n return \"dasm\";\n}\n\nclass VCSPlatform extends BasePlatform {\n\n lastBreakState; // last breakpoint state\n\n // TODO: super hack for ProbeBitmap view\n machine = {\n cpuCyclesPerLine: 76 // NTSC\n };\n\n getPreset
|
||
|
"mappings": "iTAaA,GAAM,GAAc,CAClB,CAAC,GAAG,mBAAoB,QAAQ,EAAG,KAAK,sBACxC,CAAC,GAAG,mBAAoB,QAAQ,EAAG,KAAK,sBAAuB,MAAM,cACrE,CAAC,GAAG,uBAAwB,QAAQ,EAAG,KAAK,sBAC5C,CAAC,GAAG,oBAAqB,QAAQ,EAAG,KAAK,uBACzC,CAAC,GAAG,0BAA2B,QAAQ,EAAG,KAAK,iBAC/C,CAAC,GAAG,qBAAsB,QAAQ,EAAG,KAAK,mBAAoB,MAAM,iBACpE,CAAC,GAAG,sBAAuB,QAAQ,GAAI,KAAK,0BAA2B,MAAM,kBAC7E,CAAC,GAAG,yBAA0B,QAAQ,GAAI,KAAK,uBAC/C,CAAC,GAAG,sBAAuB,QAAQ,GAAI,KAAK,aAC5C,CAAC,GAAG,sBAAuB,QAAQ,GAAI,KAAK,aAC5C,CAAC,GAAG,0BAA2B,QAAQ,GAAI,KAAK,mBAChD,CAAC,GAAG,2BAA4B,QAAQ,GAAI,KAAK,oBACjD,CAAC,GAAG,wBAAyB,QAAQ,GAAI,KAAK,cAC9C,CAAC,GAAG,wBAAyB,QAAQ,GAAI,KAAK,cAC9C,CAAC,GAAG,oBAAqB,QAAQ,GAAI,KAAK,0BAA2B,MAAM,mBAC3E,CAAC,GAAG,uBAAwB,QAAQ,GAAI,KAAK,0BAA2B,MAAM,mBAE9E,CAAC,GAAG,uBAAwB,QAAQ,GAAI,KAAK,wBAAyB,MAAM,mBAC5E,CAAC,GAAG,wBAAyB,QAAQ,GAAI,KAAK,aAC9C,CAAC,GAAG,oBA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