moved cart header into seperate file, moved nmi stub into several file, tweaked linker config

This commit is contained in:
mrdudz
2015-11-29 16:01:36 +01:00
parent 1893e24da9
commit c636675521
8 changed files with 53 additions and 50 deletions

16
libsrc/gamate/header.s Normal file
View File

@@ -0,0 +1,16 @@
; The following symbol is used by linker config to force the module
; to get included into the output file
.export __STARTUP__: absolute = 1
.import Start, IRQStub, NMIStub
.segment "STARTUP"
.word 0 ; +00 checksum from 7000-7fff (simple 8bit adds)
.byte 1, 0, 1 ; +02 flags
.byte "COPYRIGHT BIT CORPORATION", 0, $ff ; +05 copyright
; system vectors
jmp Start ; +20 reset entry
jmp NMIStub ; +23 nmi entry
jmp IRQStub ; +26 irq entry (135 hz)