CBM prg Studio - BASIC Machine Language Launcher

JMP $FCE2
CPULoyal
Member
Member
Posts: 5
Joined: Fri Jul 25, 2014 11:00 pm
Location: Mexico
Contact:

CBM prg Studio - BASIC Machine Language Launcher

Post by CPULoyal »

Recently, I helped a friend with some machine language routines for a game he is coding. Because its IDE, I picked CBM prg Studio to code the snippets I sent him.
One of the snippets I want to share is this. It is a small BASIC launcher, coded in machine language. It generates a single BASIC line, linked to the address where the code start, all dinamically generated inside CPS. Hope it's useful:

Code: Select all

* = $0801                       ; Start of Basic (C64)

        word eop                ; Pointer to next BASIC line
        word 1969               ; Line number
        byte $9e                ; SYS token
        text start_ml            ; ML start address
        byte 0                  ; End of Line
eop
        word 0                  ; End of Program

start_ml = *                  ; ML code goes after this line
Regards


satpro

Re: CBM prg Studio - BASIC Machine Language Launcher

Post by satpro »

Wonderful!
Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 9 guests