From d07874ea22557bf2ebda08dbf84702f19a494256 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 25 Oct 2019 18:18:28 +0100 Subject: [PATCH] Assemble at 7c00h. --- pyrit.asm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pyrit.asm b/pyrit.asm index 603d8da..edfab47 100644 --- a/pyrit.asm +++ b/pyrit.asm @@ -12,7 +12,17 @@ ; 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 @@ -242,3 +252,6 @@ B: mov [di],ah ; pushed al = tex*y E:ret + + times 510-($-$$) db 0 + db 0x55,0xaa -- 1.8.3.1