Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assembly question
#24
thanks both

for number 1 did you mean horizontal lines?

if so here is the solution:
Code:
function FASTCALL drawthis() as ubyte
    asm
    LD HL,16384
    LD BC,7

    drawblokes:
    INC H
    LD (HL),254
    DEC BC
    LD A, B
    OR C  
    JP NZ,drawblokes
       end asm
    end function

    drawthis()
    Print "done"

doing it with vertical lines would be doing the above, but drawing lines in like this
100000000
replaced with..
11000000
replaced with..
11100000
replaced with..
11110000
replaced with..
11111000
replaced with..
11111100
replaced with..
11111110
replaced with..
11111111
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)