stdio (output only) now works.
--HG-- branch : dtrg-videocore
This commit is contained in:
parent
8c21a2ef9b
commit
e299cc3bcf
|
@ -29,16 +29,11 @@ platform-libsys := \
|
|||
write.c \
|
||||
isatty.c \
|
||||
brk.c \
|
||||
|
||||
ifeq (x,y)
|
||||
_sys_rawread.s \
|
||||
_sys_rawwrite.s \
|
||||
getpid.c \
|
||||
kill.c \
|
||||
lseek.c \
|
||||
time.c \
|
||||
signal.c
|
||||
endif
|
||||
|
||||
$(eval $(call build-platform))
|
||||
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
#
|
||||
/*
|
||||
* Raspberry Pi support library for the ACK
|
||||
* © 2013 David Given
|
||||
* This file is redistributable under the terms of the 3-clause BSD license.
|
||||
* See the file 'Copying' in the root of the distribution for the full text.
|
||||
*/
|
||||
|
||||
! 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
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
#
|
||||
/*
|
||||
* Raspberry Pi support library for the ACK
|
||||
* © 2013 David Given
|
||||
* This file is redistributable under the terms of the 3-clause BSD license.
|
||||
* See the file 'Copying' in the root of the distribution for the full text.
|
||||
*/
|
||||
|
||||
! Declare segments (the order is important).
|
||||
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
|
||||
.sect .text
|
||||
|
||||
! Writes a single byte to the console.
|
||||
|
||||
.define __sys_rawwrite
|
||||
.extern __sys_rawwrite
|
||||
|
||||
__sys_rawwrite:
|
||||
push bp
|
||||
mov bp, sp
|
||||
|
||||
movb al, 4(bp)
|
||||
movb ah, 0x0E
|
||||
mov bx, 0x0007
|
||||
int 0x10
|
||||
jmp .cret
|
||||
|
Loading…
Reference in a new issue