Page 2 of 2

Re: nxtBasic error with STA "A"

Posted: Fri Jul 26, 2024 12:24 pm
by funkheld
hello for the help with :
If you want to have look at how the build in functions work, the /asm folder is your friend.


I'll test some small routines.
I still have to look into how to pass int numbers from nxtbasic to asm and retrieve int numbers from asm for nxtbasic.

Thanks.
Best wishes

Re: nxtBasic error with STA "A"

Posted: Fri Jul 26, 2024 12:41 pm
by unartic
Feel free to post any use cases I can help with.

Re: nxtBasic error with STA "A"

Posted: Fri Jul 26, 2024 12:54 pm
by funkheld
your nxtbasic is great fun.

I tested a small routine in basic-functions.s (fillcolor)
works great.

-------------------------------
func "FILLCOLOR":"FILLCOLOR"
FILLCOLOR:
lda #0
sta $9f20
lda #0
sta $9f21
lda #$10
sta $9f22

ldx #$00
loop1:
ldy #$00
loop:
lda #45
sta $9f23
iny
bne loop
inx
bne loop1
rts
endfunc:
---------------------------


basic :
-----------------------
SCREEN 128

print "SUPER"
fillcolor
------------------------------

greeting.

Re: nxtBasic error with STA "A"

Posted: Fri Jul 26, 2024 1:05 pm
by unartic
It already exists :-)

FILLSCREEN color

But yes, the extensibility is great. I still have to document it though.

Re: nxtBasic error with STA "A"

Posted: Fri Jul 26, 2024 1:15 pm
by funkheld
It's just a demo, I couldn't think of anything else to test this asm with nxbasic.

Thanks.
greeting