If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working soon.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
Tetris (NES, Nintendo)/ROM map: Difference between revisions
Jump to navigation
Jump to search
(I've been tracing the boot code) |
No edit summary |
||
Line 1: | Line 1: | ||
{{Rommap|game=Tetris}} | |||
<pre> | <pre> | ||
; Code: | ; Code: |
Revision as of 16:28, 18 June 2006
The following article is a ROM map for Tetris (NES, Nintendo).
; Code: reset = $FF00 main = $8000 soundWaitVBL = $AA45 ; Run sound code and wait for vblank NMI turnOffNMI = $AA78 ; Turn off interrupts clearNametable = $AA82 ; Clear nametable whose base address is A clearVRAM = $AC1C ; If A < $1F, clear Y pages of VRAM to X ; Otherwise, clear 4 pages of VRAM to X and clear attribute table to Y playSound = $E000 ; Appears to be sound code, called every frame ; Data: initHiScores = $AD67 ; High score table, copied to $0700 on boot