Clean up Assembly files (#1003)
This commit is contained in:
@@ -6,45 +6,44 @@
|
||||
cpu 8048
|
||||
org 400h
|
||||
|
||||
; interrupt vectors
|
||||
jmp 02C3h ; selectgame (RESET)
|
||||
jmp 0009h ; irq
|
||||
jmp timer ; timer
|
||||
jmp 001Ah ; vsyncirq
|
||||
jmp start ; after selectgame
|
||||
jmp 0044h ; soundirq
|
||||
|
||||
jmp 02C3h
|
||||
jmp 0009h
|
||||
jmp timer
|
||||
jmp 001Ah
|
||||
jmp start
|
||||
jmp 0044h
|
||||
timer:
|
||||
ret ; no timer needed
|
||||
ret
|
||||
|
||||
|
||||
start:
|
||||
|
||||
call 011Ch ; gfxoff
|
||||
call 011Ch
|
||||
|
||||
mov r0,#010h ; pointer in VDC - which char to display (one of 12)
|
||||
mov r3,#40 ; x
|
||||
mov r4,#100 ; y
|
||||
mov r1,#hellostr & 0ffh ; string to print (should be on same 255 bytes page)
|
||||
mov r0,#010h
|
||||
mov r3,#40
|
||||
mov r4,#100
|
||||
mov r1,#hellostr & 0ffh
|
||||
|
||||
mov r2,#11 ; string length
|
||||
mov r2,#11
|
||||
|
||||
nextchar:
|
||||
mov a,r1
|
||||
movp a,@a ; get char located at @r1
|
||||
movp a,@a
|
||||
mov r5,a
|
||||
inc r1 ; inc addr of char
|
||||
mov r6,#0eh ; white color
|
||||
call 03EAh ; printchar bios subroutine (increases r0, r3)
|
||||
inc r1
|
||||
mov r6,#0eh
|
||||
call 03EAh
|
||||
djnz r2,nextchar
|
||||
|
||||
call 0127h ; gfxon (show what is written to VDC)
|
||||
call 0127h
|
||||
|
||||
|
||||
loop:
|
||||
jmp loop ; just wait and do nothing
|
||||
jmp loop
|
||||
|
||||
|
||||
; 'HELLO WORLD' (ascii not supported by assembler)
|
||||
hellostr:
|
||||
db 01dh, 012h, 00eh, 00eh, 017h, 00ch, 011h, 017h, 013h, 00eh, 01ah
|
||||
|
||||
|
||||
Reference in New Issue
Block a user