2007-02-20 00:25:12 +00:00
|
|
|
#
|
|
|
|
! $Source$
|
|
|
|
! $State$
|
2007-02-20 00:31:54 +00:00
|
|
|
! $Revision$
|
2007-02-20 00:25:12 +00:00
|
|
|
|
|
|
|
! 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
|
|
|
|
|