Changes

Jump to: navigation, search

Transtape

1 byte removed, 13:48, 6 December 2013
/* Technical */
* Black button pages their ROM into the range &0000-&3fff and executes it at &0000. This checks the ROM version, and clears the extra ram if a CPC6128 BASIC ROM is found.
[code] 0000 f3 di ;; disable maskable interrupts 0001 0100df ld bc,0df00h ;; select upper rom 0 0004 ed49 out (c),c 0006 01817f ld bc,7f81h ;; enable upper rom (mode 1 too) 0009 ed49 out (c),c 000b 31febf ld sp,0bffeh ;; setup stack which is not initialised after reset
000e 3a02c0 ld a,(0c002h) ;; read BASIC ROM version number 0011 fe02 cp 02h ;; CPC6128? 0013 cc2e0c call z,0c2eh ;; erase extra RAM
;; this appears to set it up for a reset.. 0016 210000 ld hl,0000h 0019 e5 push hl 001a e5 push hl 001b c30038 jp 3800h ;; I think the hardware monitors for address 3800h and if found disables the ROM[/code]
* Uses NMI
2,541
edits