8-Bit Show And Tell | Using Commodore 64 BASIC SYS Parameters in Machine Language @8_Bit | Uploaded July 2021 | Updated October 2024, 3 hours ago.
Today we're coding an example of how to extend Commodore 64 BASIC SYS commands with parameters that can be used in your machine language program. Instead of just SYS 49152 you can do SYS 49152,X,Y,40*25 or whatever you'd like in your C64 BASIC programs.
Download today's code: 8bitshowandtell.com/prg/sysparam.d64
To support 8-Bit Show And Tell:
Become a patron: patreon.com/8BitShowAndTell
One-time donation: paypal.me/8BitShowAndTell
2nd channel: youtube.com/channel/UCAgWzEh5c8391eJnELDy9OA
How to use:
LOAD"TMP",8,1
SYS 32768
Back Arrow, L then filename: ML11
Back Arrow, 3 to assemble, any key to editor
Back Arrow, 1 to exit to BASIC
BASIC Use Example 1:
SYS 828,1064,400,1
BASIC Use Example 2:
10 FOR X=1 TO 1000
20 SYS 828,1024,X,X
30 NEXT
Intro and end credits music by bedfordlevelexperiment.bandcamp.com
Index:
0:00 Intro
1:00 Loading and assembling with Turbo Macro Pro
2:17 An example
5:06 Walk through the code
8:55 Reading the parameters
10:35 Using the parameters example: memory fill routine
15:50 Using the example in a short BASIC program
19:22 Thanks to my patrons
Today we're coding an example of how to extend Commodore 64 BASIC SYS commands with parameters that can be used in your machine language program. Instead of just SYS 49152 you can do SYS 49152,X,Y,40*25 or whatever you'd like in your C64 BASIC programs.
Download today's code: 8bitshowandtell.com/prg/sysparam.d64
To support 8-Bit Show And Tell:
Become a patron: patreon.com/8BitShowAndTell
One-time donation: paypal.me/8BitShowAndTell
2nd channel: youtube.com/channel/UCAgWzEh5c8391eJnELDy9OA
How to use:
LOAD"TMP",8,1
SYS 32768
Back Arrow, L then filename: ML11
Back Arrow, 3 to assemble, any key to editor
Back Arrow, 1 to exit to BASIC
BASIC Use Example 1:
SYS 828,1064,400,1
BASIC Use Example 2:
10 FOR X=1 TO 1000
20 SYS 828,1024,X,X
30 NEXT
Intro and end credits music by bedfordlevelexperiment.bandcamp.com
Index:
0:00 Intro
1:00 Loading and assembling with Turbo Macro Pro
2:17 An example
5:06 Walk through the code
8:55 Reading the parameters
10:35 Using the parameters example: memory fill routine
15:50 Using the example in a short BASIC program
19:22 Thanks to my patrons