; In memory it looks like {Z X Y}, which saves a displacement byte.
; (u'v) is the dot product: ux*vx + uy*vy + uz*vz.
-org 100h ; assume al=0 bx=0 sp=di=-2 si=0100h bp=09??h
+ org 0x7c00
+ xor ax,ax
+ xor bx,bx
+ mov cx,0ffh
+ mov di,-2
+; mov ss,dx
+ mov sp,di
+ mov si,100h
+ mov bp,091ch
+
+; assume al=0 bx=0 sp=di=-2 si=0100h bp=09??h
;Set video mode and earth+sky palette
dec di ; u16[100h] = -20401, u16[10Ch] = -30515
mov [di],ah ; pushed al = tex*y
E:ret
+
+ times 510-($-$$) db 0
+ db 0x55,0xaa