From 01081ce1676ab2efe9bbccc811c3fed48b9571fc Mon Sep 17 00:00:00 2001 From: Ed94 Date: Tue, 18 Jan 2022 21:24:06 -0500 Subject: [PATCH] Got disk loading to work. COPY /b 16bit.boot 16bit.scratch 16bit.loader qemu-system-x86_64 -fda 16bit.loader --- .../16bit.CheckDisplayMode.s | 0 0.Hello/16bit.hello.char.teletype.s | 60 ------- 16bit copy.Scratch | Bin 512 -> 0 bytes 16bit.Output.Tests.s | 93 +++++++++++ 16bit.Scratch.s | 80 ++-------- 16bit.boot.S | 150 ++++++++++++++++++ 16bit.Scratch => 16bit.output.tests | Bin AAL.x86.s | 5 + 8 files changed, 259 insertions(+), 129 deletions(-) rename 16bit.CheckDisplayMode.s => 0.Hello/16bit.CheckDisplayMode.s (100%) delete mode 100644 0.Hello/16bit.hello.char.teletype.s delete mode 100644 16bit copy.Scratch create mode 100644 16bit.Output.Tests.s create mode 100644 16bit.boot.S rename 16bit.Scratch => 16bit.output.tests (100%) diff --git a/16bit.CheckDisplayMode.s b/0.Hello/16bit.CheckDisplayMode.s similarity index 100% rename from 16bit.CheckDisplayMode.s rename to 0.Hello/16bit.CheckDisplayMode.s diff --git a/0.Hello/16bit.hello.char.teletype.s b/0.Hello/16bit.hello.char.teletype.s deleted file mode 100644 index fb53f74..0000000 --- a/0.Hello/16bit.hello.char.teletype.s +++ /dev/null @@ -1,60 +0,0 @@ -; Hello world. - -; x86 -; 16-bit - Real Mode, V86 Mode - -%include "AAL.x86.S" - - -; 16-Bit Mode -[BITS 16] -; The ORG directive specifies the starting address of a segment -[ORG Mem_BootSector_Start] - - -start : - -textmode_ClearScreen: -; Params - mov AH, Video_SetMode - mov AL, VideoMode_Text_40x25 -; Call Interrupt -int VideoService - -teletype_HelloWorld : - mov BH, 0x0 ; Make sure the Active page is the first - mov AH, Video_TeleType - mov AL, 'H' -int VideoService - mov AL, 'e' -int VideoService - mov AL, 'l' -int VideoService - mov AL, 'l' -int VideoService - mov AL, 'l' -int VideoService - mov AL, 'o' -int VideoService - mov AL, ' ' -int VideoService - mov AL, 'W' -int VideoService - mov AL, 'o' -int VideoService - mov AL, 'r' -int VideoService - mov AL, 'l' -int VideoService - mov AL, 'd' -int VideoService - -hang : -jmp short hang - - -; Byte pad 512 bytes (zeroed) -times 510-$+start db 0 -; Master Boot Record signature -db 0x55 -db 0xAA diff --git a/16bit copy.Scratch b/16bit copy.Scratch deleted file mode 100644 index da660c521dfb012ab8a7257b4f1d4a69ebaaf3a5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 512 zcmdnOuz~rkfZ>6@8+`}*F6?Hg>AbT$taf2?ZNLjD#)vI#JDC{HitbLWU6>CP;b4sD z7AvgXSy~(T;vhq0w^(uQ&PpJAD?{Y&+S-M!KqXHZB6gS7?qFdEcySBJtb{PnGk}Z| z02;M}3n;URAz}wFkX{8;!BDe{f$0Sk!|Q*+VTRuMEuQfNNL*u}8;TMba*4h5hw$qYbeeX9X0*Fq?d0xJira0J^A@`~H* zIdRd485k6RAUL%1DbUX5e=H@kofn!P@Us}$Sk^JIuy@C?H6Lcy{M^BQ@Dz*N>w9sr z(T72bxA1kjv7HqF@*p}pZ*JkUE@LU-?L6JZVDSH}0MKQx-^Ilq4lXIm%u81YNi8nn j;^k%VNUeafxfrHMDk&I1K~QROX-