Author Topic: Assembly Help Needed  (Read 650 times)

0 Members and 1 Guest are viewing this topic.

Offline 260Z

  • Supporter
  • CPC664
  • *
  • Posts: 111
  • Country: au
  • Liked: 56
  • Likes Given: 155
Assembly Help Needed
« on: 02: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
« Last Edit: 02:13, 19 September 15 by 260Z »

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1985
  • Likes Given: 4650
Re: Assembly Help Needed
« Reply #1 on: 02:30, 19 September 15 »
1020 'LD (HL),%00100010


Try:
1020 'LD (HL),%11000000
« Last Edit: 02:32, 19 September 15 by TFM »
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline 260Z

  • Supporter
  • CPC664
  • *
  • Posts: 111
  • Country: au
  • Liked: 56
  • Likes Given: 155
Re: Assembly Help Needed
« Reply #2 on: 03:11, 19 September 15 »
See post below  ::)
« Last Edit: 03:20, 19 September 15 by 260Z »

Offline 260Z

  • Supporter
  • CPC664
  • *
  • Posts: 111
  • Country: au
  • Liked: 56
  • Likes Given: 155
Re: Assembly Help Needed
« Reply #3 on: 03:19, 19 September 15 »
All good , just read the video memory layout info. Instead of glancing at it. :)

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

Cheers,
Robert