Re: A85: line


[Prev][Next][Index][Thread]

Re: A85: line




<< there's an easier way to make horizontal lines like this:
 
  ld b,16      ; one line is 16 bytes
  ld a,$ff     ; bitmap for a line
  ld hl,$fc00  ; adress on the screen where you want the line
 loop:
  ld (hl),a    ; load one byte into mem stored at hl
  inc hl       ; go to next byte of line
  djnz loop    ; repeat 16 times
 
 this is a lot shorter than using fline. >>

FLINE doesn't erase the six or seven pixels next to the line though. That is
its only major advantage.