Author Topic: comment a block with winape  (Read 180 times)

0 Members and 1 Guest are viewing this topic.

Online Fran123

  • CPC464
  • **
  • Posts: 27
  • Country: es
  • Liked: 1
  • Likes Given: 0
comment a block with winape
« on: 13:30, 16 April 21 »
Hello


Do  you know how I you can comment a block with Winape?


I have to comment line by line, and it's a pain


Thank you

Offline SRS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 640
  • Country: de
  • Schneider CPC464 - what else ?
  • Liked: 642
  • Likes Given: 372
Re: comment a block with winape
« Reply #1 on: 16:16, 16 April 21 »
Using the WINAPE Assembler-File Editor : you can't - I am using "NOTEPAD++" and then load/copy&paste to winape if i need some "mass text processing"


Maybe using


"if 0" ... your not to assemble code ... "endif"


may help to get to the same result (not assembling the wanted lines).


See:


Code: [Select]
org &a000


ld a,7
call &bb5a
if 0


db 15
ldir
;nonsense
jr 0


endif


ret


assembles to



Code: [Select]
000001  0000  (A000)        org &a000
000003  A000  3E 07         ld a,7
000004  A002  CD 5A BB      call &bb5a
000005  A005  (0000)        if 0
000012  A005  (0000)        endif
000014  A005  C9            ret








Using the BASIC Editor of CPC: you can't