nxtBasic error with STA "A"

All aspects of programming on the Commander X16.
funkheld
Posts: 322
Joined: Mon Feb 26, 2024 11:11 am

Re: nxtBasic error with STA "A"

Post 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
unartic
Posts: 145
Joined: Sat Oct 28, 2023 3:26 pm

Re: nxtBasic error with STA "A"

Post by unartic »

Feel free to post any use cases I can help with.
funkheld
Posts: 322
Joined: Mon Feb 26, 2024 11:11 am

Re: nxtBasic error with STA "A"

Post 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.
Attachments
nxtbasic.jpg
nxtbasic.jpg (13.61 KiB) Viewed 797 times
unartic
Posts: 145
Joined: Sat Oct 28, 2023 3:26 pm

Re: nxtBasic error with STA "A"

Post by unartic »

It already exists :-)

FILLSCREEN color

But yes, the extensibility is great. I still have to document it though.
funkheld
Posts: 322
Joined: Mon Feb 26, 2024 11:11 am

Re: nxtBasic error with STA "A"

Post by funkheld »

It's just a demo, I couldn't think of anything else to test this asm with nxbasic.

Thanks.
greeting
Post Reply