A85: Assembling problems.


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

A85: Assembling problems.




Hello, first of all I want to apologise if you have
this message multiple times, because this is the
third(3.) time I'm trying to post this. Yahoo messed up
the first one, second one was sent but I can't see it
here on the list, now once more. Sorry.

Ok, after following the list for some time I decided to
ask few questions myself. 

1. I'm now making a program for Usgard and I'd like to
know how to do HL*16. Here's part of the code, I made,
but now I realized it should do the rl for HL not only
L. Can you help me here?
;--------------
ld	a,l			
rla
rla
rla
rla
rla
rla
rla
rla
ld	l,a
ld	bc,VIDEO_MEM+4 ;just some displaying stuff
add 	hl,bc
;---------------

2. Is there a smaller/faster way to draw a vertical
line(ok, this is my first program, so...)?
;---------------
ld bc,$4001		;height=$40:byteofset%00000001 
ld de,$0010		;next line is vidmem+16...
ld hl,VIDEO_MEM+3

Lineloop:
        ld a,(hl)
	or c            ;I want to OR the PixelOnScreen
	ld (hl),a
        add hl,de
        djnz Lineloop
;---------------

Ok, thanks friends! Good luck with your projects too!
 
Johannes Rajala

---------------
e-mail: carrot@sgic.fi
home: http://carrot.findhere.com/

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



Follow-Ups: