Re: Auto Boot

From: geneb <geneb_at_deltasoft.com>
Date: Thu, 4 Apr 2013 07:53:31 -0700 (PDT)
Message-ID: <alpine.LFD.2.03.1304040753140.29282@deltasoft.com>
On Thu, 4 Apr 2013, Ted wrote:

> All,
>
> I have written a short boot loader for the C64 ROM. I placed it in the unused 
> area at $BF53 (48979) in the BASIC ROM (It just fit).
>
> 00BF53  1  A2 00                LDX     #$00
> 00BF55  1               BOOTLOOP:
> 00BF55  1  BD 64 BF             LDA     BOOTTEXT,X      ; GET NEXT BOOT TEXT 
> BYTE
> 00BF58  1  F0 07                BEQ     BOOT_OUT        ; DONE IF ZERO
> 00BF5A  1  9D 77 02             STA     KEYBUF,X        ; PUT IT IN THE 
> KEYBOARD BUFFER
> 00BF5D  1  E8                   INX                     ; POINT X TO NEXT 
> BYTE IN BOOT TEXT
> 00BF5E  1  4C 55 BF             JMP     BOOTLOOP        ; REPEAT THE LOOP
> 00BF61  1               BOOT_OUT:
> 00BF61  1  86 C6                STX     KEYCNT          ; SAVE THE BYTE COUNT
> 00BF63  1  60                   RTS                     ; RETURN TO CALLER
> 00BF64  1  4C CF 22 2D  BOOTTEXT:   .BYTE   "L", 'O'+$80, '"', "-", '"', 
> ",8", $0D, "R", 'U'+$80, $0D, $00
>
> I recompiled it and tested if with VICE emulator. It works if I type the 
> command 'sys 48979'.
>
That's really cool Ted!

g.

-- 
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
Some people collect things for a hobby.  Geeks collect hobbies.

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://www.scarletdme.org - Get it _today_!

       Message was sent through the cbm-hackers mailing list
Received on 2013-04-04 15:00:47

Archive generated by hypermail 2.2.0.