Page 1 of 1
hello, this "sta ($fb),y" not funktion in TRSE
Posted: Thu Dec 19, 2019 10:25 am
by funkheld
hello, this "sta ($fb),y" not funktion in TRSE
Code: Select all
procedure setchar();
begin
asm("
lda #$00
sta $fb
lda #$10
sta $fc
lda #1
ldy #0
sta ($fb),y
");
end;
greeting
Re: hello, this "sta ($fb),y" not funktion in TRSE
Posted: Thu Dec 19, 2019 2:20 pm
by AndyH
What you’ve written looks fine. I use that all the time in my bitmap code.
Are you sure $fb /fc is free to use ?
Re: hello, this "sta ($fb),y" not funktion in TRSE
Posted: Thu Dec 19, 2019 2:22 pm
by funkheld
hello, no loop with dasm.
with orgasm loop.
greeting
Re: hello, this "sta ($fb),y" not funktion in TRSE
Posted: Thu Dec 19, 2019 2:33 pm
by AndyH
You could try declaring a pointer which will use one of these ZP addresses:
$02, $04, $08, $16, $0B, $0D, $10, $12, $22, $24, $68 *** note these are defined in the TRSE project settings, so you can change them to your own requirements.
p1: pointer;
and in the code you could try something like
Code: Select all
p1 := $1000;
asm("
lda #1
ldy #0
sta (p1),y
");
or instead of the asm, p1[0] := 1;
That works for me.
Also, are you sure you have the screen at $1000 ?
Re: hello, this "sta ($fb),y" not funktion in TRSE
Posted: Fri Dec 20, 2019 5:08 am
by funkheld
hello, thanks.
-------------------------------
Also, are you sure you have the screen at $1000 ?
--------------------------------
yes, this is 4096.
greeting