This commit is contained in:
Antoine Vignau 2024-01-02 15:32:27 +01:00
parent 3b4eb5d34e
commit 09e562e38c
6 changed files with 21150 additions and 20993 deletions

View File

@ -21,6 +21,7 @@ HGR rep #$30
*----------------------------------- *-----------------------------------
RDKEY phx RDKEY phx
jsr CURSOR ; shows the cursor
rep #$30 rep #$30
]lp pha ]lp pha
@ -59,17 +60,19 @@ HOME rep #$30
bpl ]lp bpl ]lp
lda #bottomRECT lda #bottomRECT
*----------- Efface les 3 lignes du bas *----------- Efface les 3 lignes du bas
mx %00
eraseLINES sta pointerRECT eraseLINES sta pointerRECT
PushLong #curPATTERN PushLong #curPATTERN
_GetPenPat _GetPenPat
PushLong #blackPATTERN PushLong #blackPATTERN
_SetPenPat _SetPenPat
PushLong pointerRECT PushLong pointerRECT
_PaintRect _PaintRect
@ -85,13 +88,86 @@ pointerRECT adrl bottomRECT
bottomRECT dw 170,0,199,319 bottomRECT dw 170,0,199,319
lastlineRECT dw 190,0,199,319 lastlineRECT dw 190,0,199,319
cursorRECT dw 0,0,0,0 ; y2 and x2 are y1+7 and x1+7
testme ds 2
*-----------------------------------
mx %11
*CURSOR_ERASE
phx
lda CH
pha
lda CV
pha
lda #' '
jsr COUT
pla
sta CV
pla
sta CH
dec CH
jsr TABV
plx
rts
*-----------------------------------
mx %11
CURSOR_ERASE
phx
rep #$30
lda textY
sta cursorRECT+4
sec
sbc #8
sta cursorRECT
lda textX
sta cursorRECT+2
clc
adc #8
sta cursorRECT+6
lda #cursorRECT
jsr eraseLINES ; retour en 8-bits
mx %11
dec CH
jsr TABV
plx
rts
*----------------------------------- *-----------------------------------
mx %11 mx %11
TABV sta CV ; 10 pixels de haut par ligne CURSOR
rep #$20 lda CH
pha
lda CV
pha
lda #$a5 ; black bullet
jsr COUT
pla
sta CV
pla
sta CH
*-----------------------------------
mx %11
TABV rep #$30
lda CV
and #$ff and #$ff
asl asl
tax tax
@ -104,8 +180,7 @@ TABV sta CV ; 10 pixels de haut par ligne
asl asl
asl asl
sta textX sta textX
sep #$30
sep #$20
rts rts
*----------------------------------- *-----------------------------------

Binary file not shown.

View File

@ -53,6 +53,7 @@ keyDownEvt = $0003
*----------------------- *-----------------------
modeCopy = $0000
modeForeCopy = $0004 ; QDII Table 16-10 modeForeCopy = $0004 ; QDII Table 16-10
mode320 = $00 mode320 = $00

File diff suppressed because it is too large Load Diff

View File

@ -78,6 +78,7 @@ PLAY sep #$30
lda #0 ; move cursor to 0,20 lda #0 ; move cursor to 0,20
sta CH sta CH
lda #16 ; au lieu de 20 LoGo lda #16 ; au lieu de 20 LoGo
sta CV
jsr TABV ; on a 20 lignes de 10 caract<63>res de haut jsr TABV ; on a 20 lignes de 10 caract<63>res de haut
jsr :7110 jsr :7110
@ -1641,7 +1642,6 @@ initALL
*----------------------------------- *-----------------------------------
EXPLODE rts EXPLODE rts
rts
*----------------------------------- *-----------------------------------
* CODE 6502 * CODE 6502
@ -1663,6 +1663,8 @@ setHGR rts ; HGR
* GETLEN1 par LoGo * GETLEN1 par LoGo
*---------------------- *----------------------
mx %11
GETLN1 ldx #0 GETLN1 ldx #0
]lp jsr RDKEY ]lp jsr RDKEY
cmp #chrRET cmp #chrRET
@ -1671,8 +1673,8 @@ GETLN1 ldx #0
beq doBACK beq doBACK
cmp #chrLA cmp #chrLA
beq doBACK beq doBACK
cmp #chrRA cmp #chrSPC ; must not be another control character
beq ]lp bcc ]lp
jsr testENERGIE jsr testENERGIE
@ -1689,7 +1691,7 @@ doEXIT lda #chrRET
doBACK cpx #0 doBACK cpx #0
beq ]lp beq ]lp
dec CH jsr CURSOR_ERASE ; contains dec CH & TABV
dex dex
jmp ]lp jmp ]lp
@ -1734,6 +1736,7 @@ setMIXEDON ; HGR + 4 LINES OF TEXT
setMIXEDOFF ; FULL HGR setMIXEDOFF ; FULL HGR
* rts * rts
rep #$30
lda ptrSCREEN lda ptrSCREEN
sta dpTO sta dpTO
lda ptrSCREEN+2 lda ptrSCREEN+2
@ -1744,7 +1747,6 @@ setMIXEDOFF ; FULL HGR
lda ptrTEXT+2 lda ptrTEXT+2
sta dpTHREE+2 sta dpTHREE+2
rep #$30
ldy #170*160-2 ldy #170*160-2
]lp lda [dpTHREE],y ]lp lda [dpTHREE],y
pha pha

Binary file not shown.