From 3a3be79bae3b56a39827dee4e55d5626638a7b44 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Wed, 13 Sep 2023 14:10:45 -0400 Subject: [PATCH] Modifying Location --- Part2/A4/.DS_Store | Bin 6148 -> 8196 bytes Part2/A4/02_driver/kernel/kernel.c | 8 ++++---- Part2/A4/05_basic_int/.DS_Store | Bin 0 -> 6148 bytes Part2/A4/06_irq/.DS_Store | Bin 0 -> 6148 bytes .../~$3502F0432_Project_Part1_2.docx | Bin 162 -> 0 bytes 5 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 Part2/A4/05_basic_int/.DS_Store create mode 100644 Part2/A4/06_irq/.DS_Store delete mode 100644 Part2/Instructions/~$3502F0432_Project_Part1_2.docx diff --git a/Part2/A4/.DS_Store b/Part2/A4/.DS_Store index 9cca8569800336f6cd9b4792a39ffa2d7c522a59..c6284231f5080dd518f8dbd787dd754e4d506b79 100644 GIT binary patch delta 213 zcmZoMXmOBWU|?W$DortDU;r^WfEYvza8E20o2aMAD6lbLH}hr%jz7$c**Q2SHn1=X zZ02Ek!8Cafo8;tt)}tVrr!2TAFDE}Q9c0$zk8Jw9YzzhrW(@HRnG8h?g&<{;C?Y88 zW!YbCY~W!MWCrR60ts#);Rf1h|2OD@en}!tczJ`DHvo+8LN2MuALc*c{I@hZz7F!xCEn diff --git a/Part2/A4/02_driver/kernel/kernel.c b/Part2/A4/02_driver/kernel/kernel.c index b01709f..050e51c 100755 --- a/Part2/A4/02_driver/kernel/kernel.c +++ b/Part2/A4/02_driver/kernel/kernel.c @@ -9,11 +9,11 @@ void _start() { position = position << 8; /* high byte */ port_byte_out(0x3d4, 15); /* requesting low byte */ - position += port_byte_in(0x3d5) + 10; + position += port_byte_in(0x3d5); /* VGA 'cells' consist of the character and its control data * e.g. 'white on black background', 'red text on white bg', etc */ - int offset_from_vga = position * 2; + int offset_from_vga = position * 2.3; /* Now you can examine both variables using gdb, since we still * don't know how to print strings on screen. Run 'make debug' and @@ -27,6 +27,6 @@ void _start() { /* Let's write on the current cursor position, we already know how * to do that */ char *vga = (char *) 0xb8000; - vga[offset_from_vga] = 'X'; - vga[offset_from_vga+1] = 0x0f; /* White text on black background */ + vga[offset_from_vga+10] = 'X'; + vga[offset_from_vga+11] = 0x0f; /* White text on black background */ } diff --git a/Part2/A4/05_basic_int/.DS_Store b/Part2/A4/05_basic_int/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..0933e7ed5d1bc5a40478a927d6d7ce3b657cb436 GIT binary patch literal 6148 zcmeH~&u`N(6vv;}u)0i0JpkGTDH7KS3JiqAC6sa4feS%!092ACK(r87O}ZYcN;z)Y zAH$75W&aB&_&(c{7H=FusPc>KuYbIk=zWyfF%gOJJbOSiBqE8z8eB(ph4DO>OSWN0 zwxELVv0ti#v{Whjd_!-ZfG6;O6X0(*pp+D@#`%7qWA5HBZ90h_9nh5Kj@S3Az0yTJ zwQIqTbXpd5Ga8+Vjb3nVvoHH{OMZ;Mszux+&Ac8bv-jM4qg0umx0Cd3kuN60n=e$= zBt@0abU=~iaQX1As4}$}t9g~xIyN>Fav%qj;qB#ev=i<=9<6r5<Ci#2-ua1#2-xQ~6ZuqPB@4;~`a?j$0kzV-w>fi8ib=?;1SfBEP0e>ceYJONK& ztq6!@2Gz;6vc0Mh^f literal 0 HcmV?d00001 diff --git a/Part2/A4/06_irq/.DS_Store b/Part2/A4/06_irq/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..b23acb68bff1d4d9bbaa514ce012e9241fbbb795 GIT binary patch literal 6148 zcmeHK%}T>S5Z-NTn^J@vR6GW}7K~a&@DgHu0V8@)sR;=h8nY#7&7l->)EDwmd>&_Z zH()S$6tOd~`_0bJZsvpR4`YnGi|~LklQCvML*%G52$~yREgg)=fpPCWiNc%v^F{9Z*)5K)gh+x) z_k-&=DkkRExk%@JoJN^Uh{Fg%?r!2V6oo4mX_(7gPdSXf(Vv(*%cVWEM#uJQXf01q zMxY-atyX3o^)a;jKDVt^PR28e-m zWI&$=#$X+br<#cYV&F#xaDT9%AvzjMg>vhF4zJJX?;xUpj&BJ>OQWN)R0tjru2KP2 zD%Vd8uF}D7={QGYsZgaeE?0(m^vc!ah0E2!Zpm=Q9fi~r1H?d`fwmf&c>Z6&FVpzQ zucy$67$64z83VjC_Qoz0rO(!H<>6UtL3@CPf^j7(AfVSS0WiRQWLG+s-$EVY9F3(y UoCWPN9gr>pk`U^MfnQ+Y6E_A+sQ>@~ literal 0 HcmV?d00001 diff --git a/Part2/Instructions/~$3502F0432_Project_Part1_2.docx b/Part2/Instructions/~$3502F0432_Project_Part1_2.docx deleted file mode 100644 index 09348d97a560d3acdc1f6b194b31a2408fdc347d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 162 zcmd=0%FjzI$wR