ack/plat/pc65oo2/libsys/_sys_rawread.s

23 lines
246 B
ArmAsm
Raw Permalink Normal View History

2024-02-22 15:13:52 +00:00
#
! $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