1; #LAYOUT# STD * #TAKE 2; #LAYOUT# * KERNAL_0 #TAKE 3; #LAYOUT# * * #IGNORE 4 5; 6; Official Kernal routine, described in: 7; 8; - [RG64] C64 Programmers Reference Guide - page 293 (RESTOR), 304 (VECTOR) 9; - [CM64] Computes Mapping the Commodore 64 - page 237 10; 11; CPU registers that has to be preserved (see [RG64]): none 12; 13 14RESTOR: 15 16 clc ; clear carry - for writing to system table 17 ldy #>vector_defaults 18 ldx #<vector_defaults 19 20 ; FALLTHROUGH 21 22VECTOR: 23 24; Our implementation is longer than the original one, 25; placing it here would cause a collision with VECTOR defaults 26 27 jmp vector_real 28