LZ: nasr and sound question.
[Prev][Next][Index][Thread]
LZ: nasr and sound question.
I have a few question that i would like answered.
This nasr program I got off of ticalc I would like to use in my game that
I am making. And I would like to know how to lay out the program. Here is
what I have so far.
(This may not be exact to the way the program looks cause I am not on the
computer that has it on it.)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
TempLine = $80df
PicCoor = $80e7
offset = $80e9
NASR_Status = $80ea
.org 0
.db "test.nasr"
ld b,2
ld c,55
ld hl,Hello_Sprite
ld de,(PROGRAM_ADDR)
add hl,de
CALL_(NASRWARP)
; Right here is a get key loop to go back to zhell when exit or enter is
; pressed.
; NASRPWARP routine...
Hello_Sprite:
.db 3,6,5
.db %10101110, %10001000, %11100000
.db %10101000, %10001000, %10100000
.db %11101110, %10001000, %10100000
.db %10101000, %10001000, %10100000
.db %10101110, %11101110, %11100000
.end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Now WTF am I dont wrong?
And also I don't know about this part
a=smallest integer greater than or equal to x/8
b=a*8-x+1
c=y
THE LAST TIME I CHECKED...
(Lets take the Hello_Sprite: for an example.)
a b c
| | |
Hello_Sprite: V V V
.db 3,6,5
.db %10101110, %10001000, %11100000 >\
.db %10101000, %10001000, %10100000 >\
.db %11101110, %10001000, %10100000 >--- c right?
.db %10101000, %10001000, %10100000 >/
.db %10101110, %11101110, %11100000 >/
^ ^ ^ ^ ^ ^
\_____/ \_____/ \_____/
\_______|_______/
|
a=(24/8) right?
a=3 right?
b=a*8-x+1
| |
3 24 right?
tell me what I am doing wrong.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ok now for the sound stuff.
This one is simple but I can get it to work.
First off what is the best sound routine to use if I just wanted to play
one tone.
Is it possable to play a htz. tone. Like 2600htz :)
Is this possable to define this as one tone.
Thank you for your time.
Carl Turner
cturner@garfield.leesummit.k12.mo.us
/| || /| //-- /| || /| /---\ /---- |---\ /---\ |---\
|| || || || || || || || || || || || || || || ||
|| || || || || || || || || || || || || || || ||
|| || || || || || || || || || || || || || || ||
|| || || ||-|| ||-|| || ||-|| || || || || ||- ||_/
|| || || || || || || || || || || || || || || || \\
||-|| || || || || || || || || || || || || || || ||
|| || || ||_|| || || || || || || || || || || || ||
|| || |/ \---/ || |/ ||--/ || || || || |---/ ||--/ || ||
|| ||
|| ||
|| |/
'There can be only one!'
-The Highlander, Mac