@@ -10,8 +10,10 @@
org 160h
startpr ld sp,0100h
+ ld a,0ffh
+ out (0b2h),a
ld hl,hiba
ld (0bff8h),hl
xor a
ld de,video
@@ -26,12 +28,17 @@
ld a,0ffh
out (0b3h),a
call vid
out (0b1h),a
- call memaddr
- ld l,h
- ld h,00h
- add hl,hl
+ ; call memaddr
+ ; ld l,h
+ ; ld h,00h
+ ; add hl,hl
+ and 03h
+ rra
+ ld h, a
+ rra
+ ld l, a
ld (chradd+1),hl
ld ix,chraddr
call fillcha
ld hl,(chradd+1)
@@ -69,9 +76,11 @@
exx
fillpt xor a
call wide44
call wide44
- call wide40
+ ; call wide40
+ ld de,0b33h
+ call filllpb
exx
add hl,de
exx
djnz fillpt
@@ -110,61 +119,63 @@
pop hl
ld bc,1bh*0480h
ldir
call edgefnt
- call edgfnt2
- call fontmod
- call fntmod2
- call ibmchar
- call botemp1
- call botemp2
- call chrendi
- call chrthin
+ ; call edgfnt2
+ ; call fontmod
+ ; call fntmod2
+ ; call ibmchar
+ ; call botemp1
+ ; call botemp2
+ ; call chrendi
+ ; call chrthin
call chrhftn
call chrital
call chrita1
call chrita2
call chrvshp
call fntend1
- call fntend2
- call fntend3
- call fntend4
- call fntszp1
+ ; call fntend2
+ ; call fntend3
+ ; call fntend4
+ ; call fntszp1
call fntszp2
call fntszp3
call fntszp4
xor a
ld (actpos+1),a
di
- ld a,0c3h
- ld hl,intrut
- ld (0038h),a
- ld (0039h),hl
+ ld a, 09h
+ ld i, a
+ im 2
ei
ld ix,(lptadd+1)
xxx call keys
animval jr xxx
chraddx ld hl,0b480h
animate call chrani1
jr xxx
-intrut push af
- push bc
- push hl
- ld a,30h
- out (0b4h),a
- pop hl
- pop bc
- pop af
- ei
- ret
+hiba1 di
+ im 1
+hiba ld sp,0100h ;0124
+ ld a,0ffh
+ out (0b2h),a
+ ld hl,hiba ;0124h
+ ld (0bff8h),hl
+ ld c,40h
+ exos 0
+ ld a,01h
+ out (0b3h), a
+ ld a,06h
+ jp 0c00dh
keys halt
halt
- ld c,03h
+ ld c,0
call extjoy ;ext1
ld d,e
- ld c,08h
+ ld c,5
call extjoy ;ext2
ld a,e
and d
ld d,a
@@ -300,17 +311,16 @@
ret
aniaddr dw chrani1,chrani2,chrani3,chrani4
-extjoy ld b,03h ;fire up down
- ld e,0ffh
+extjoy ld e,3fh ;fire up down
extjoy1 ld a,c
- sub b
+ inc c
out (0b5h),a
in a,(0b6h)
rra
rl e
- djnz extjoy1
+ jr nc,extjoy1
ret
edgefnt ld hl,(chradde+1)
ld de, tmpFont
@@ -347,9 +357,9 @@
add ix, de
ld a, l
add a, a
jr nz, .l1
- ret
+ ; ret
edgfnt2 xor a
ld hl, tmpFont - 256
.l0: ld (hl), a
@@ -384,9 +394,9 @@
add ix, de
ld a, l
add a, a
jr nz, .l1
- ret
+ ; ret
fontmod ld hl,chrset+2*0480h
ld c, 4
ld de, 128
@@ -396,9 +406,9 @@
inc hl
djnz .l2
dec c
jr nz, .l1
- ret
+ ; ret
fntmod2 xor a
ld hl, tmpFont - 256
.l0: ld (hl), a
@@ -430,9 +440,9 @@
djnz .l2
rlc d
dec c
jr nz, .l1
- ret
+ ; ret
ibmchar ld hl,chrset+4*0480h
ld de,0080h
ld c,04h
@@ -442,9 +452,9 @@
inc hl
djnz delch2
dec c
jr nz,delch1
- ret
+ ; ret
botemp1 ld hl,chrset+5*0480h
ld de,0080h
add hl,de
@@ -462,9 +472,9 @@
inc hl
djnz carry
dec c
jr nz,delcha
- ret
+ ; ret
botemp2 ld hl,chrset+6*0480h
ld c,09h
ld e,0ffh
@@ -480,9 +490,9 @@
inc hl
djnz carryb
dec c
jr nz,delchb
- ret
+ ; ret
chrendi ld hl,chrset+7*0480h
ld c,09h
ld e,0ffh
@@ -498,9 +508,9 @@
inc hl
djnz delch3
dec c
jr nz,delchc
- ret
+ ; ret
chrthin ld hl,chrset+8*0480h
ld c,09h
delchd1 ld b,80h
@@ -619,9 +629,9 @@
add hl,de
exx
dec c
jr nz,fnte11
- ret
+ ; ret
fntend2 ld hl,chrset+15*0480h+8*80h
exx
ld c,80h
@@ -653,9 +663,9 @@
add hl,de
exx
dec c
jr nz,fnte21
- ret
+ ; ret
fntend3 ld hl,chrset+16*0480h+8*80h
exx
ld c,80h
@@ -682,9 +692,9 @@
add hl,de
exx
dec c
jr nz,fnte31
- ret
+ ; ret
fntend4 ld hl,chrset+17*0480h+8*80h
exx
ld c,80h
@@ -714,9 +724,9 @@
add hl,de
exx
dec c
jr nz,fnte41
- ret
+ ; ret
fntszp1 ld hl,chrset+18*0480h+1
ld de,0007h
ld bc,8010h
@@ -857,32 +867,18 @@
mask2 db 3fh
defs low -$
chraddr defs numchr*4*3
-hiba1 ld a,0f5h
- ld hl,1837h
- ld (0038h),a
- ld (0039h),hl
-hiba ld sp,0100h ;0124
- ld a,0ffh
- out (0b2h),a
- ld hl,hiba ;0124h
- ld (0bff8h),hl
- ld c,40h
- exos 0
- ld a,01h
- out (0b3h), a
- ld a,06h
- jp 0c00dh
+
; 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
; 00 02 04 06 08 0a 0c 0e 10 12 14 16 18 1a 1c 1e
mask db 00h,02h,04h,02h,08h,0ah,04h,1eh,20h,22h,24h,22h,28h,2ah,28h,3eh
; 20 22 24 26 28 2a 2c 2e 30 32 34 36 38 3a 3c 3e
db 40h,42h,44h,42h,48h,4ah,44h,5eh,60h,42h,44h,62h,58h,4ah,7ch,7eh
-wide40 ld de,0b33h
- jr filllpb
+;wide40 ld de,0b33h
+; jr filllpb
wide44 ld de,0935h
filllpb ld (hl),d
inc l
ld (hl),e
@@ -903,18 +899,22 @@
add a,2ch
ret
fillcha ld b,numchr
-fillch1 ld (ix+0),l
- ld (ix+1),h
- ld (ix+2),l
- ld (ix+3),h
- ld (ix+4),l
- ld (ix+5),h
ld de,0009h
+fillch1 ld (ix),l
+ inc ix
+ ld (ix),h
+ inc ix
+ ld (ix),l
+ inc ix
+ ld (ix),h
+ inc ix
+ ld (ix),l
+ inc ix
+ ld (ix),h
+ inc ix
add hl,de
- ld de,0006h
- add ix,de
djnz fillch1
ret
colors db 20h,04h,24h,0a4h,34h,0b4h,26h,0a6h,36h,0f6h,0feh,0f7h,0ffh,0ffh
@@ -948,15 +948,28 @@
ld a,c ;a contains the page
; jp z,hiba
ret
-memaddr ld hl,0000h
- rra
- rr h
- rra
- rr h
- ret
+;memaddr ld hl,0000h
+; rra
+; rr h
+; rra
+; rr h
+; ret
video db 6,"VIDEO:"
+
+ block 0a0ah - $, 0ah
+
+intrut push af
+ ; push bc
+ ; push hl
+ ld a,30h
+ out (0b4h),a
+ ; pop hl
+ ; pop bc
+ pop af
+ ei
+ ret
vege
fillen equ $-startpr