Copy pc86 platform to nes platform, and make change accordingly.

This commit is contained in:
Manoel Trapier
2013-03-04 19:00:38 +01:00
committed by Manoël Trapier
parent dccecc5d45
commit cc534493fd
26 changed files with 687 additions and 0 deletions

36
plat/nes/boot.s Normal file
View File

@@ -0,0 +1,36 @@
#
! $Source$
! $State$
! $Revision$
! Declare segments (the order is important).
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
start2:
jmp _main
.define __exit
.extern __exit
.define EXIT
.extern EXIT
__exit:
EXIT:
.define begtext, begdata, begbss
.sect .data; begdata:
.sect .rom; begrom:
.sect .bss; begbss:
! Some magic data. All EM systems need these.
.define .trppc, .ignmask, _errno
.comm .trppc, 4
.comm .ignmask, 4
.comm _errno, 4