est Bewegung durch eine 3D-Landschaft mit ... - David Zaadstra
est Bewegung durch eine 3D-Landschaft mit ... - David Zaadstra
est Bewegung durch eine 3D-Landschaft mit ... - David Zaadstra
Erfolgreiche ePaper selbst erstellen
Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.
Projektarbeit 2002, BKIK 2/1<br />
<strong>David</strong> <strong>Zaadstra</strong>, Alexander Fuchs<br />
<strong>Bewegung</strong> <strong>durch</strong> <strong>eine</strong> <strong>3D</strong>-<strong>Landschaft</strong> <strong>mit</strong> Fernbedienung<br />
Elektronikschule Tettnang<br />
inc<br />
pop<br />
r7<br />
dpl<br />
mov r1, #8 ; Bytezähler zurücksetzen<br />
BYTE_NOT_FULL:<br />
; wenn noch nicht alle Bytes gelesen und gewandelt sind,<br />
; wieder nach oben springen<br />
djnz r2, temp<br />
jmp temp2<br />
temp:<br />
ljmp NOT_ALL_READ<br />
temp2:<br />
mov<br />
a, r0<br />
; Anzahl der Bytes = gelesene Bytes / 8, weil jedes Byte nur noch ein<br />
Bit ist<br />
rr a<br />
rr a<br />
rr a<br />
; <strong>mit</strong> Nullen auffüllen (für die kürzeren Codes)<br />
push acc<br />
mov dph,#0c0h<br />
mov dpl, r7<br />
mov r7, #4<br />
NULL_FILL:<br />
mov a, #0<br />
movx @dptr, a<br />
inc dptr<br />
djnz r7, NULL_FILL<br />
pop acc<br />
ENDM<br />
pop 07<br />
pop 01<br />
pop 00<br />
;//////////////////////////////////////////////////////////////////////////<br />
- 42 -