CPCWiki forum

General Category => Programming => Topic started by: 260Z on 00:07, 19 September 15

Title: Assembly Help Needed
Post by: 260Z on 00:07, 19 September 15
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
Title: Re: Assembly Help Needed
Post by: TFM on 00:30, 19 September 15
Quote from: 260Z on 00:07, 19 September 15
1020 'LD (HL),%00100010


Try:
1020 'LD (HL),%11000000
Title: Re: Assembly Help Needed
Post by: 260Z on 01:11, 19 September 15
See post below  ::)
Title: Re: Assembly Help Needed
Post by: 260Z on 01:19, 19 September 15
All good , just read the video memory layout info. Instead of glancing at it. :)

**** hangs head in shame ****

Cheers,
Robert
Powered by SMFPacks Menu Editor Mod