1 2 3 4 5 6 7 8 9 10 11 12 13
.globl _cpc_SetMode _cpc_SetMode:: ;ld a,l LD HL,#2 ADD HL,SP LD L,(HL) ; Comprobar que el valor vaya a L!! LD BC,#0x7F00 ;Gate array port LD D,#140 ;@10001100 ;Mode and rom selection (and Gate Array function) ADD D OUT (C),A RET