stdio (output only) now works.

--HG--
branch : dtrg-videocore
This commit is contained in:
David Given 2013-05-25 23:59:31 +01:00
parent 8c21a2ef9b
commit e299cc3bcf
3 changed files with 0 additions and 63 deletions

View file

@ -29,16 +29,11 @@ platform-libsys := \
write.c \ write.c \
isatty.c \ isatty.c \
brk.c \ brk.c \
ifeq (x,y)
_sys_rawread.s \
_sys_rawwrite.s \
getpid.c \ getpid.c \
kill.c \ kill.c \
lseek.c \ lseek.c \
time.c \ time.c \
signal.c signal.c
endif
$(eval $(call build-platform)) $(eval $(call build-platform))

View file

@ -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

View file

@ -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