See my post above!
Another question: how can I disassemble a part of the OS. I.e. what should I do when I want to know how _ParseInp works? I had the idea to do
Code: ld hl, _ParseInp
bcall(_PutS)
bcall(_GetKey)
ret
but then I got a bunch of BASIC-commands, which is hard to translate to hex.
My second try was to load the contents of _PutS into the graphscreen, and make a BASIC program to get it, but I don't get normal ASM I guess
Code: .data:00000000 0e 05 ld c,0x05
.data:00000002 02 ld (bc),a
.data:00000003 04 inc b
.data:00000004 00 nop
.data:00000005 0c inc c
.data:00000006 04 inc b
.data:00000007 04 inc b
.data:00000008 0e 05 ld c,0x05
.data:0000000a 08 ex af,af'
.data:0000000b 04 inc b
.data:0000000c 00 nop
.data:0000000d 0c inc c
.data:0000000e 04 inc b
.data:0000000f 04 inc b
.data:00000010 0e 05 ld c,0x05
.data:00000012 04 inc b
.data:00000013 0a ld a,(bc)
.data:00000014 00 nop
.data:00000015 0c inc c
.data:00000016 04 inc b
.data:00000017 04 inc b
.data:00000018 0e 05 ld c,0x05
.data:0000001a 0a ld a,(bc)
.data:0000001b 00 nop
.data:0000001c 00 nop
.data:0000001d 0c inc c
.data:0000001e 04 inc b
.data:0000001f 04 inc b
.data:00000020 0e 05 ld c,0x05
.data:00000022 02 ld (bc),a
.data:00000023 04 inc b
.data:00000024 0e 11 ld c,0x11
.data:00000026 11 11 0e ld de,0x0e11
.data:00000029 05 dec b
.data:0000002a 08 ex af,af'
.data:0000002b 04 inc b
.data:0000002c 0e 11 ld c,0x11
.data:0000002e 11 10 0e ld de,0x0e10
.data:00000031 05 dec b
.data:00000032 04 inc b
.data:00000033 0a ld a,(bc)
.data:00000034 0e 11 ld c,0x11
.data:00000036 11 11 0e ld de,0x0e11
.data:00000039 05 dec b
.data:0000003a 0a ld a,(bc)
.data:0000003b 00 nop
.data:0000003c 0e 11 ld c,0x11
.data:0000003e 11 11 0e ld de,0x0e11
.data:00000041 05 dec b
.data:00000042 02 ld (bc),a
.data:00000043 04 inc b
.data:00000044 00 nop
.data:00000045 0e 11 ld c,0x11
.data:00000047 10 0e djnz 0x0057
.data:00000049 05 dec b
.data:0000004a 08 ex af,af'
.data:0000004b 04 inc b
.data:0000004c 00 nop
.data:0000004d 0e 11 ld c,0x11
.data:0000004f 11 0e 05 ld de,0x050e
.data:00000052 04 inc b
.data:00000053 0a ld a,(bc)
.data:00000054 00 nop
.data:00000055 0e 11 ld c,0x11
.data:00000057 11 0e 05 ld de,0x050e
.data:0000005a 0a ld a,(bc)
.data:0000005b 00 nop
.data:0000005c 00 nop
.data:0000005d 0e 11 ld c,0x11
.data:0000005f 10 0e djnz 0x006f
.data:00000061 05 dec b
.data:00000062 02 ld (bc),a
.data:00000063 04 inc b
.data:00000064 11 11 11 ld de,0x1111
.data:00000067 11 0e 05 ld de,0x050e
.data:0000006a 08 ex af,af'
.data:0000006b 04 inc b
.data:0000006c 11 11 11 ld de,0x1111
.data:0000006f 11 0e 05 ld de,0x050e
.data:00000072 04 inc b
.data:00000073 0a ld a,(bc)
.data:00000074 00 nop
.data:00000075 11 11 10 ld de,0x1011
.data:00000078 0e 05 ld c,0x05
.data:0000007a 0a ld a,(bc)
.data:0000007b 00 nop
.data:0000007c 11 11 11 ld de,0x1111
.data:0000007f 11 0e 05 ld de,0x050e
.data:00000082 02 ld (bc),a
.data:00000083 04 inc b
.data:00000084 11 11 11 ld de,0x1111
.data:00000087 13 inc de
.data:00000088 0d dec c
.data:00000089 05 dec b
.data:0000008a 08 ex af,af'
.data:0000008b 04 inc b
.data:0000008c 11 11 11 ld de,0x1111
.data:0000008f 12 ld (de),a
.data:00000090 0d dec c
.data:00000091 05 dec b
.data:00000092 04 inc b
.data:00000093 0a ld a,(bc)
.data:00000094 00 nop
.data:00000095 11 11 13 ld de,0x1311
.data:00000098 0d dec c
.data:00000099 05 dec b
.data:0000009a 0a ld a,(bc)
.data:0000009b 00 nop
.data:0000009c 11 11 11 ld de,0x1111
.data:0000009f 13 inc de
.data:000000a0 0d dec c
.data:000000a1 05 dec b
.data:000000a2 0e 11 ld c,0x11
.data:000000a4 10 11 djnz 0x00b7
.data:000000a6 0e 04 ld c,0x04
.data:000000a8 1c inc e
.data:000000a9 05 dec b
.data:000000aa 00 nop
.data:000000ab 00 nop
.data:000000ac 0e 10 ld c,0x10
.data:000000ae 11 0e 1c ld de,0x1c0e
.data:000000b1 05 dec b
.data:000000b2 05 dec b
.data:000000b3 0a ld a,(bc)
.data:000000b4 11 19 15 ld de,0x1519
.data:000000b7 13 inc de
.data:000000b8 11 05 05 ld de,0x0505
.data:000000bb 0a ld a,(bc)
.data:000000bc 00 nop
.data:000000bd 16 19 ld d,0x19
.data:000000bf 10 11 djnz 0x00d2
.data:000000c1 05 dec b
.data:000000c2 01 02 04 ld bc,0x0402
.data:000000c5 00 nop
.data:000000c6 00 nop
.data:000000c7 00 nop
.data:000000c8 00 nop
.data:000000c9 05 dec b
.data:000000ca 10 08 djnz 0x00d4
.data:000000cc 04 inc b
.data:000000cd 00 nop
.data:000000ce 00 nop
.data:000000cf 00 nop
.data:000000d0 00 nop
.data:000000d1 05 dec b
.data:000000d2 00 nop
.data:000000d3 0a ld a,(bc)
.data:000000d4 00 nop
.data:000000d5 00 nop