2002-06-22 13:10:02 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 22.06.2002
|
|
|
|
;
|
|
|
|
; Emulation for tgi_bar.
|
|
|
|
;
|
|
|
|
|
|
|
|
.include "tgi-kernel.inc"
|
|
|
|
|
|
|
|
.importzp ptr1, ptr2, ptr3, ptr4
|
|
|
|
|
2003-02-11 12:37:46 +00:00
|
|
|
.proc tgi_emu_bar
|
|
|
|
|
2002-06-22 13:10:02 +00:00
|
|
|
lda ptr4
|
|
|
|
sta Y2
|
|
|
|
lda ptr4+1
|
|
|
|
sta Y2+1
|
|
|
|
|
|
|
|
lda ptr3
|
|
|
|
sta X2
|
|
|
|
lda ptr3+1
|
|
|
|
sta X2+1
|
|
|
|
|
|
|
|
lda ptr2
|
|
|
|
sta ptr4
|
|
|
|
sta Y1
|
|
|
|
lda ptr2+1
|
|
|
|
sta ptr4+1
|
|
|
|
sta Y1+1
|
|
|
|
|
|
|
|
lda ptr1
|
|
|
|
sta X1
|
|
|
|
lda ptr1+1
|
|
|
|
sta X1+1
|
|
|
|
|
2002-07-07 11:12:41 +00:00
|
|
|
@L1: jsr tgi_horline
|
2002-06-22 13:10:02 +00:00
|
|
|
|
|
|
|
lda Y1
|
|
|
|
cmp Y2
|
|
|
|
bne @L2
|
|
|
|
lda Y1
|
|
|
|
cmp Y2
|
|
|
|
beq @L4
|
|
|
|
|
|
|
|
@L2: inc Y1
|
|
|
|
bne @L3
|
|
|
|
inc Y1+1
|
|
|
|
|
|
|
|
@L3: lda Y1
|
|
|
|
sta ptr2
|
|
|
|
lda Y1+1
|
|
|
|
sta ptr2+1
|
|
|
|
|
|
|
|
lda X1
|
|
|
|
sta ptr1
|
|
|
|
lda X1+1
|
|
|
|
sta ptr1+1
|
|
|
|
|
|
|
|
lda X2
|
|
|
|
sta ptr3
|
|
|
|
lda X2+1
|
|
|
|
sta ptr3+1
|
|
|
|
jmp @L1
|
|
|
|
|
|
|
|
@L4: rts
|
|
|
|
|
2003-02-11 12:37:46 +00:00
|
|
|
.endproc
|
|
|
|
|
2002-06-22 13:10:02 +00:00
|
|
|
;-----------------------------------------------------------------------------
|
|
|
|
; Data
|
|
|
|
|
|
|
|
.bss
|
|
|
|
|
|
|
|
DY: .res 2
|
|
|
|
X1: .res 2
|
|
|
|
X2: .res 2
|
|
|
|
Y1: .res 2
|
|
|
|
Y2: .res 2
|
|
|
|
|
|
|
|
|
|
|
|
|