Re: Auto Boot

From: Steve Gray <sjgray_at_rogers.com>
Date: Fri, 5 Apr 2013 12:36:20 -0400
Message-Id: <7F4534C9-98C6-4344-B8FC-A718C207D968@rogers.com>
If you want a ready-made kernal replacement solution check this thread:

http://www.lemon64.com/forum/viewtopic.php?t=32018


Steve


On Apr 4, 2013, at 10:35 AM, Ted <ejohnson.ed@gmail.com> 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'.
> 
> I would like to have the computer RESET ROUTINE call it a power on, not the warm start.
> 
> Any suggestions how to wedge it into the startup?
> 
> Ted
> 
>      Message was sent through the cbm-hackers mailing list

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

Archive generated by hypermail 2.2.0.