Hi All ,
Ok , I know I'm going to kick myself for not seeing the answer here , but I don't understand why this code will note produce a solid line in the Pen 2 colour ?
What am I doing wrong ?
I've attached a screen shot showing what's happening. This is running in JavaCPC using the Maxam rom.
5 CLS
10 MEMORY &7FFF
20 start=&8000
30 GOSUB 1000
35 MODE 0
40 CALL start
50 END
1000 |ASSEMBLE
1010 'LD HL,&C000
1011 'LD A,255
1015 '.loop
1020 'LD (HL),%00100010
1025 'INC HL
1027 'DEC A
1029 'JR NZ,loop
1030 'RET
1040 'END
1050 RETURN
Cheers ,
Robert
Quote from: 260Z on 00:07, 19 September 15
1020 'LD (HL),%00100010
Try:
1020 'LD (HL),%11000000
See post below ::)
All good , just read the video memory layout info. Instead of glancing at it. :)
**** hangs head in shame ****
Cheers,
Robert