another experience on superbasic

Anything QL Software or Programming Related.
Post Reply
User avatar
nitrofurano
Chuggy Microdrive
Posts: 53
Joined: Sat Nov 16, 2013 10:48 am

another experience on superbasic

Post by nitrofurano »

its a bit slow - i'm going to try something faster from secondbasic soon - perhaps i might try to code a simple game based on it later
(i have no idea how fine would it run on expanded ql)
Attachments
03_chrvpoke01.zip
(6.36 KiB) Downloaded 52 times


User avatar
nitrofurano
Chuggy Microdrive
Posts: 53
Joined: Sat Nov 16, 2013 10:48 am

Re: another experience on superbasic

Post by nitrofurano »

might look like this
Attachments
Screenshot at 2022-02-21 16-24-05.png


User avatar
nitrofurano
Chuggy Microdrive
Posts: 53
Joined: Sat Nov 16, 2013 10:48 am

Re: another experience on superbasic

Post by nitrofurano »

recoded it on SecondBasic
i only needed to replace

Code: Select all

 lsl.l #10,d0
with

Code: Select all

 lsl.l #7,d0
 lsl.l #3,d0 
so Vasm would recognize it
Attachments
02_chrvpoke01_sb.zip
(5.55 KiB) Downloaded 46 times
111_Screenshot at 2022-02-22 14-24-33.png


User avatar
nitrofurano
Chuggy Microdrive
Posts: 53
Joined: Sat Nov 16, 2013 10:48 am

Re: another experience on superbasic

Post by nitrofurano »

faster version, using pokelong and peeklong&() (poke_l and peek_l() ) instead of poke and peek
Attachments
03_chrvpokelong01_sb.zip
(5.44 KiB) Downloaded 43 times


User avatar
nitrofurano
Chuggy Microdrive
Posts: 53
Joined: Sat Nov 16, 2013 10:48 am

Re: another experience on superbasic

Post by nitrofurano »

improved the code a bit, but some blinking flash glitches appeared (i have no idea why)
Attachments
05_chrvpokelong01_sb_declaresub.zip
(6.1 KiB) Downloaded 51 times


Post Reply