fat16 working
This commit is contained in:
1
OperatingSystem/software2/include/extern_symbols.s
Symbolic link
1
OperatingSystem/software2/include/extern_symbols.s
Symbolic link
@@ -0,0 +1 @@
|
||||
../../monitor_v2/zout/symbols.s
|
||||
5
OperatingSystem/software2/properties.env
Normal file
5
OperatingSystem/software2/properties.env
Normal file
@@ -0,0 +1,5 @@
|
||||
export OPT_GEN_SYMBOLTABLE=0
|
||||
export OPT_GEN_MONFILE=1
|
||||
export OPT_GEN_OBJFILE=1
|
||||
export OPT_WRITEROM=0
|
||||
export FILENAME=test
|
||||
37
OperatingSystem/software2/test.asm
Normal file
37
OperatingSystem/software2/test.asm
Normal file
@@ -0,0 +1,37 @@
|
||||
.include "extern_symbols.s" ;include monitor symbols.
|
||||
START_ADDR .EQU 0x8000
|
||||
|
||||
|
||||
org START_ADDR
|
||||
com_header:
|
||||
jp com_prg
|
||||
db 0x00
|
||||
dw 0x00, 0x00, 0x00 ;always 0
|
||||
dw [START_ADDR] ;start addr
|
||||
dw [_eof] ;end of file
|
||||
dw [_eof - START_ADDR] ;length
|
||||
dc 48,0x00
|
||||
|
||||
com_prg:
|
||||
|
||||
|
||||
ld hl,[_str]
|
||||
_l1:
|
||||
ld a, (hl)
|
||||
or a
|
||||
ret z
|
||||
out (CS_SIO_A_D),a
|
||||
_wait:
|
||||
ld a,1
|
||||
out (CS_SIO_A_C),A
|
||||
in A,(CS_SIO_A_C) ;read RRx
|
||||
bit 0,A
|
||||
jr z,_wait
|
||||
inc hl
|
||||
jr _l1
|
||||
|
||||
_str:
|
||||
db 10,13,"Hello World",10,13,0
|
||||
|
||||
|
||||
_eof:
|
||||
BIN
OperatingSystem/software2/zout/HELLORD.COM
Normal file
BIN
OperatingSystem/software2/zout/HELLORD.COM
Normal file
Binary file not shown.
BIN
OperatingSystem/software2/zout/test.bin
Normal file
BIN
OperatingSystem/software2/zout/test.bin
Normal file
Binary file not shown.
8
OperatingSystem/software2/zout/test.hex
Normal file
8
OperatingSystem/software2/zout/test.hex
Normal file
@@ -0,0 +1,8 @@
|
||||
:10800000C340800000000000000000806580650023
|
||||
:108010000000000000000000000000000000000060
|
||||
:108020000000000000000000000000000000000050
|
||||
:108030000000000000000000000000000000000040
|
||||
:108040002155807EB7C8D3083E01D309DB09CB4751
|
||||
:1080500028F62318EE0A0D48656C6C6F20576F7276
|
||||
:058060006C640A0D0034
|
||||
:00000001FF
|
||||
1168
OperatingSystem/software2/zout/test.lst
Normal file
1168
OperatingSystem/software2/zout/test.lst
Normal file
File diff suppressed because it is too large
Load Diff
7
OperatingSystem/software2/zout/test.mon
Normal file
7
OperatingSystem/software2/zout/test.mon
Normal file
@@ -0,0 +1,7 @@
|
||||
!8000 C3 40 80 00 00 00 00 00 00 00 00 80 65 80 65 00
|
||||
!8010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
!8020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
!8030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
!8040 21 55 80 7E B7 C8 D3 08 3E 01 D3 09 DB 09 CB 47
|
||||
!8050 28 F6 23 18 EE 0A 0D 48 65 6C 6C 6F 20 57 6F 72
|
||||
!8060 6C 64 0A 0D 00
|
||||
Reference in New Issue
Block a user