Login
Back to forumSee the full topicGo to last reply

Posted By

bszggg
on 2024-02-20
19:42:19
 Re: Cursor place (reposition in interrupt) problem

@Haegar

Yes, I would like to move the operation systems actual cursor

@gerliczer

Yeah, I tried, but that doesn't work well.
After click in a BASIC program list multiple (long line) row, that brake the multiple, or doesn't accept the changes..



I think I have to set differently the $C4 and $C5 than the $CA $CD in that case if it is a long basic row

TED contains the cursor that is displayed
$CA $CD is the cursor, that I move with cursor keys
$C4 $C5 is the cursor that lead the command (If I set wrong I got syntax error, or doesn't do anything after enter)

I don't know, How I can count these $C4 $C5 addresses values.

-------------------------------------------- Thank YOU the ideas! :) -------------------------------------------
Finally I found the working code that counts the command positions well:
; .. after, I set the positions to the TED...
; here we set the dursor real side to screen
; set the Y cursor coordinate
LDX .MerCharY
STX $CD
; set the X cursor coordinate
LDY .MerCharX
STY $CA
; set the X command coordinate (it is same as screen left)
LDY $07E7
STY $C5
; set the Y command coordinate (We have to found the first wow of the actual command)
JSR $DF87 ; Call the Esc+J routin third row to check the multiple command rows This routin working with real cursor so..
LDA $CD ; copy the Y cursor coordinate command coordinate
STA $C4
LDX .MerCharY
STX $CD ; Set the Y cursor coordinate again
; counting the addresses again ($df87 contains it but wrong cursor position)
JSR $D8A8




Back to top


Copyright © Plus/4 World Team, 2001-2024