Test code for stage1...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23225 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2008-01-03 00:02:54 +00:00
parent 5c31e5fa5b
commit fa9d72b1dd
1 changed files with 18 additions and 5 deletions

View File

@ -15,7 +15,10 @@
* http://www.fortunecity.com/skyscraper/apple/308/html/chap3.htm
* http://leonard.oxg.free.fr/articles/multi_atari/multi_atari.html
* http://alive.atari.org/alive10/btmania.php
* gas stuff:
* http://www.gnu.org/software/binutils/manual/gas-2.9.1/html_chapter/as_18.html#SEC214
*
* x86:
* The offset of the partition in 512 byte blocks must be written at
* position PARTITION_OFFSET_OFFSET (32 bit little endian; makebootable does
* that) or otherwise the code can't find the partition.
@ -55,13 +58,23 @@
// BIOS calls
#ifndef _ASSEMBLER
#error plop
#endif
.loop:
move #'.',%d0
bsr putc
bra .loop
rts
/* prints the char in d0.b to the console */
putc:
move.w d0,-(%sp)
move.w #2,-(%sp) // DEV_CON
move.w #3,-(%sp) // Bconout
trap #13
addi #6,%sp
rts