News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_260Z

Assembly Help Needed

Started by 260Z, 00:07, 19 September 15

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

260Z

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

TFM

#1
Quote from: 260Z on 00:07, 19 September 15
1020 'LD (HL),%00100010


Try:
1020 'LD (HL),%11000000
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

260Z

#2
See post below  ::)

260Z

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