Copy pc86 platform to nes platform, and make change accordingly.
This commit is contained in:
committed by
Manoël Trapier
parent
dccecc5d45
commit
45121f6d87
23
plat/nes/libsys/_sys_rawread.s
Normal file
23
plat/nes/libsys/_sys_rawread.s
Normal file
@@ -0,0 +1,23 @@
|
||||
#
|
||||
! $Source$
|
||||
! $State$
|
||||
! $Revision$
|
||||
|
||||
! Declare segments (the order is important).
|
||||
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
|
||||
.sect .text
|
||||
|
||||
! Reads a single byte.
|
||||
|
||||
.define __sys_rawread
|
||||
__sys_rawread:
|
||||
xorb ah, ah
|
||||
int 0x16
|
||||
xorb ah, ah
|
||||
ret
|
||||
|
||||
Reference in New Issue
Block a user