conversion to new assembler format
This commit is contained in:
parent
d5148e0b0f
commit
d2014ff946
37 changed files with 225 additions and 40 deletions
|
@ -1,6 +1,11 @@
|
||||||
.define .aar
|
.define .aar
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.aar:
|
.aar:
|
||||||
movd 8(sp), r7
|
movd 8(sp), r7
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .cff
|
.define .cff
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.cff : cmpd 4(sp), 8(sp)
|
.cff : cmpd 4(sp), 8(sp)
|
||||||
beq 1f
|
beq 1f
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .cfi
|
.define .cfi
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.cfi: cmpd 4, 8(sp)
|
.cfi: cmpd 4, 8(sp)
|
||||||
beq 4f
|
beq 4f
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .cif
|
.define .cif
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.cif : cmpd 4, 4(sp)
|
.cif : cmpd 4, 4(sp)
|
||||||
beq 4f
|
beq 4f
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .cii
|
.define .cii
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
!r7 will save return addres
|
!r7 will save return addres
|
||||||
.cii:
|
.cii:
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .cms
|
.define .cms
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.cms: movd tos, r7 !return addres
|
.cms: movd tos, r7 !return addres
|
||||||
addr 4(sp), r1
|
addr 4(sp), r1
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .cmu
|
.define .cmu
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.cmu: movd tos, r7 !return addres
|
.cmu: movd tos, r7 !return addres
|
||||||
addr 4(sp), r1
|
addr 4(sp), r1
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .csa
|
.define .csa
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
!r0 contains index
|
!r0 contains index
|
||||||
!r1 contains pointer to csa descriptor
|
!r1 contains pointer to csa descriptor
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .csb
|
.define .csb
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
!r0 contains index
|
!r0 contains index
|
||||||
!r1 contains pointer to csb descriptor
|
!r1 contains pointer to csb descriptor
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .dup
|
.define .dup
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
!r2 will save return addres
|
!r2 will save return addres
|
||||||
.dup:
|
.dup:
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .dvu
|
.define .dvu
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.dvu:
|
.dvu:
|
||||||
enter[r1,r2],0
|
enter[r1,r2],0
|
||||||
|
|
|
@ -1,15 +1,20 @@
|
||||||
.define endtext,enddata,endbss
|
.define endtext,enddata,endbss
|
||||||
.define _end, _etext, _edata
|
.define _end, _etext, _edata
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
endtext:
|
endtext:
|
||||||
_etext:
|
_etext:
|
||||||
.align 4
|
.align 4
|
||||||
.data
|
.sect .data
|
||||||
enddata:
|
enddata:
|
||||||
_edata:
|
_edata:
|
||||||
.align 4
|
.align 4
|
||||||
.bss
|
.sect .bss
|
||||||
.align 4
|
.align 4
|
||||||
endbss:
|
endbss:
|
||||||
_end:
|
_end:
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .exg
|
.define .exg
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.exg:
|
.exg:
|
||||||
save [r2,r3]
|
save [r2,r3]
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .gto
|
.define .gto
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
!r0 contains descriptor addres
|
!r0 contains descriptor addres
|
||||||
.gto:
|
.gto:
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .lar
|
.define .lar
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.lar:
|
.lar:
|
||||||
movd tos, r2
|
movd tos, r2
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .los
|
.define .los
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.los:
|
.los:
|
||||||
movd tos, r7
|
movd tos, r7
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .mon
|
.define .mon
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.mon:
|
.mon:
|
||||||
cmpd 1,4(sp)
|
cmpd 1,4(sp)
|
||||||
|
@ -47,7 +52,7 @@
|
||||||
5: movd 0, 16(sp)
|
5: movd 0, 16(sp)
|
||||||
ret 12
|
ret 12
|
||||||
|
|
||||||
.data
|
.sect .data
|
||||||
.add1: .asciz "monitor call "
|
.add1: .asciz "monitor call "
|
||||||
.add2: .asciz " not implemented\n"
|
.add2: .asciz " not implemented\n"
|
||||||
.align
|
.align
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .print
|
.define .print
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.print:
|
.print:
|
||||||
save[r0,r1,r2]
|
save[r0,r1,r2]
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .prnl
|
.define .prnl
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.prnl: movb "\n", tos
|
.prnl: movb "\n", tos
|
||||||
jsr @.putchar
|
jsr @.putchar
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .prstr
|
.define .prstr
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
!het adres van de af te drukken string staat op de stack.
|
!het adres van de af te drukken string staat op de stack.
|
||||||
.prstr:
|
.prstr:
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .putchar
|
.define .putchar
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.putchar:
|
.putchar:
|
||||||
save [r0, r1, r2, r3]
|
save [r0, r1, r2, r3]
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .rck
|
.define .rck
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.rck:
|
.rck:
|
||||||
cmpd 0(4(sp)), 8(sp)
|
cmpd 0(4(sp)), 8(sp)
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .rmu
|
.define .rmu
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.rmu:
|
.rmu:
|
||||||
enter[r2],0
|
enter[r2],0
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .sar
|
.define .sar
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.sar:
|
.sar:
|
||||||
movd tos, r2
|
movd tos, r2
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .sts
|
.define .sts
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.sts:
|
.sts:
|
||||||
movd tos, r7
|
movd tos, r7
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define .trp
|
.define .trp
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
|
|
||||||
.text
|
.sect .text
|
||||||
|
|
||||||
.trp:
|
.trp:
|
||||||
save [r0, r1]
|
save [r0, r1]
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define _stty
|
.define _stty
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
.extern _stty
|
.extern _stty
|
||||||
.text
|
.sect .text
|
||||||
_stty:
|
_stty:
|
||||||
enter[], 0
|
enter[], 0
|
||||||
movd 12(fp),tos
|
movd 12(fp),tos
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define _sync
|
.define _sync
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
.extern _sync
|
.extern _sync
|
||||||
.text
|
.sect .text
|
||||||
_sync:
|
_sync:
|
||||||
enter[], 0
|
enter[], 0
|
||||||
movd 36,tos
|
movd 36,tos
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define _tell
|
.define _tell
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
.extern _tell
|
.extern _tell
|
||||||
.text
|
.sect .text
|
||||||
_tell:
|
_tell:
|
||||||
enter[], 0
|
enter[], 0
|
||||||
movd 1,tos
|
movd 1,tos
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define _time
|
.define _time
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
.extern _time
|
.extern _time
|
||||||
.text
|
.sect .text
|
||||||
_time:
|
_time:
|
||||||
enter[], 12
|
enter[], 12
|
||||||
addr -12(fp),tos
|
addr -12(fp),tos
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define _times
|
.define _times
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
.extern _times
|
.extern _times
|
||||||
.text
|
.sect .text
|
||||||
_times:
|
_times:
|
||||||
enter[], 0
|
enter[], 0
|
||||||
movd 8(fp),tos
|
movd 8(fp),tos
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define _umask
|
.define _umask
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
.extern _umask
|
.extern _umask
|
||||||
.text
|
.sect .text
|
||||||
_umask:
|
_umask:
|
||||||
enter[], 0
|
enter[], 0
|
||||||
movd 8(fp),tos
|
movd 8(fp),tos
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define _umount
|
.define _umount
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
.extern _umount
|
.extern _umount
|
||||||
.text
|
.sect .text
|
||||||
_umount:
|
_umount:
|
||||||
enter[], 0
|
enter[], 0
|
||||||
movd 8(fp),tos
|
movd 8(fp),tos
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define _unlink
|
.define _unlink
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
.extern _unlink
|
.extern _unlink
|
||||||
.text
|
.sect .text
|
||||||
_unlink:
|
_unlink:
|
||||||
enter[], 0
|
enter[], 0
|
||||||
movd 8(fp),tos
|
movd 8(fp),tos
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define _utime
|
.define _utime
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
.extern _utime
|
.extern _utime
|
||||||
.text
|
.sect .text
|
||||||
_utime:
|
_utime:
|
||||||
enter[], 0
|
enter[], 0
|
||||||
movd 12(fp),tos
|
movd 12(fp),tos
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define _wait
|
.define _wait
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
.extern _wait
|
.extern _wait
|
||||||
.text
|
.sect .text
|
||||||
_wait:
|
_wait:
|
||||||
enter[], 0
|
enter[], 0
|
||||||
movd 7,tos
|
movd 7,tos
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
.define _write
|
.define _write
|
||||||
|
.sect .text
|
||||||
|
.sect .rom
|
||||||
|
.sect .data
|
||||||
|
.sect .bss
|
||||||
|
.sect .text
|
||||||
.extern _write
|
.extern _write
|
||||||
.text
|
.sect .text
|
||||||
_write:
|
_write:
|
||||||
enter[], 0
|
enter[], 0
|
||||||
save [r0,r1,r2,r3]
|
save [r0,r1,r2,r3]
|
||||||
|
|
Loading…
Reference in a new issue