From 24ed0420909e5fef6ed4b8ace47d795253ade681 Mon Sep 17 00:00:00 2001
From: "Hazal2.Veziroglu@live.uwe.ac.uk" <hazal2.veziroglu@live.uwe.ac.uk>
Date: Mon, 25 Nov 2024 16:47:10 +0000
Subject: [PATCH] Update 7 files

- /worksheet1/src/.gitkeep
- /worksheet1/src/asm_io.asm
- /worksheet1/src/asm_io.inc
- /worksheet1/src/asm_io.o
- /worksheet1/src/driver.c
- /worksheet1/src/driver.o
- /worksheet1/src/task1.asm
---
 worksheet1/src/.gitkeep   |   0
 worksheet1/src/asm_io.asm |  26 --------------------------
 worksheet1/src/asm_io.inc |  30 ------------------------------
 worksheet1/src/asm_io.o   | Bin 304 -> 0 bytes
 worksheet1/src/driver.c   |   7 -------
 worksheet1/src/driver.o   | Bin 572 -> 0 bytes
 worksheet1/src/task1.asm  |  17 -----------------
 7 files changed, 80 deletions(-)
 delete mode 100644 worksheet1/src/.gitkeep
 delete mode 100644 worksheet1/src/asm_io.asm
 delete mode 100644 worksheet1/src/asm_io.inc
 delete mode 100644 worksheet1/src/asm_io.o
 delete mode 100644 worksheet1/src/driver.c
 delete mode 100644 worksheet1/src/driver.o
 delete mode 100644 worksheet1/src/task1.asm

diff --git a/worksheet1/src/.gitkeep b/worksheet1/src/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/worksheet1/src/asm_io.asm b/worksheet1/src/asm_io.asm
deleted file mode 100644
index 2e6e666..0000000
--- a/worksheet1/src/asm_io.asm
+++ /dev/null
@@ -1,26 +0,0 @@
-;
-; file: asm_io.asm
-; Assembly I/O routines
-; To assemble for DJGPP
-;   nasm -f coff -d COFF_TYPE asm_io.asm
-; To assemble for Borland C++ 5.x
-;   nasm -f obj -d OBJ_TYPE asm_io.asm
-; To assemble for Microsoft Visual Studio
-;   nasm -f win32 -d COFF_TYPE asm_io.asm
-; To assemble for Linux
-;   nasm -f elf -d ELF_TYPE asm_io.asm
-; To assemble for Watcom
-;   nasm -f obj -d OBJ_TYPE -d WATCOM asm_io.asm
-; IMPORTANT NOTES FOR WATCOM
-;   The Watcom compiler's C library does not use the
-;   standard C calling convention. For example, the
-;   putchar() function gets its argument from the
-;   the value of EAX, not the stack.
-
-
-%define NL 10
-%define CF_MASK 00000001h
-%define PF_MASK 00000004h
-%define AF_MASK 00000010h
-%define ZF_MASK 00000040h
-%define SF_MASK 00000080h
\ No newline at end of file
diff --git a/worksheet1/src/asm_io.inc b/worksheet1/src/asm_io.inc
deleted file mode 100644
index 9163be3..0000000
--- a/worksheet1/src/asm_io.inc
+++ /dev/null
@@ -1,30 +0,0 @@
-	extern  read_int, print_int, print_string
-	extern	read_char, print_char, print_nl
-	extern  sub_dump_regs, sub_dump_mem, sub_dump_math, sub_dump_stack
-
-%macro 	dump_regs 1
-	push	  dword %1
-	call	  sub_dump_regs
-%endmacro
-
-
-;
-; usage: dump_mem label, start-address, # paragraphs
-%macro  dump_mem 3
-	push	 dword %1
-	push	 dword %2
-	push	 dword %3
-	call	 sub_dump_mem
-%endmacro
-
-%macro	dump_math 1
-	push	 dword %1
-	call	 sub_dump_math
-%endmacro
-
-%macro  dump_stack 3
-	push	 dword %3
-        push     dword %2
-	push	 dword %1
-        call     sub_dump_stack
-%endmacro
\ No newline at end of file
diff --git a/worksheet1/src/asm_io.o b/worksheet1/src/asm_io.o
deleted file mode 100644
index d75ea1f27158915097669a9fe1672cfa3c2e56e7..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 304
zcmb<-^>JflWMqH=Mh0dE1doBi0V-hvrZpH?P-MY^L=hk}nUPdJU|?X7M&g6yL0oPI
z1_mY&1BMwH7!(*77(jYK;w%gd3<3-c48l+`m@)-Mh&YT7Gmk;9IHS0vs3b9oL9e(n
l7eYh$Fr_FoTpt4i0}I2){|v=N$@+=Kx$&9#dWprk3;^=O6ZZfB

diff --git a/worksheet1/src/driver.c b/worksheet1/src/driver.c
deleted file mode 100644
index d386c74..0000000
--- a/worksheet1/src/driver.c
+++ /dev/null
@@ -1,7 +0,0 @@
-int __attribute__((cdecl)) asm_main(void);
-
-int main() {
-    int ret_status;
-    ret_status = asm_main();
-    return ret_status;
-}
diff --git a/worksheet1/src/driver.o b/worksheet1/src/driver.o
deleted file mode 100644
index 964d1066906062baddae6f1a5a2c83c8b9222b7e..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 572
zcmX^2>+L^w1_lOZ1_lO31_lNe1_p)}5JLgV2eBD2K?VZ@!vaPI1`rL>55gcbKq}+o
zOHwOJKr9H3j}LK;2!XI+q%2fF$UY7xh+PaU3=J^(`1s`f+=9g9lK9fR^31%H_;?=|
zm>h^!U|?VnVPIf5z{tSB#K6EH05b!^1u0>Ok5A2rPb*5yO$Boq(A{Cez`y{)SD<D<
zR537cL%ap%8Zj_1NI=7efq{<!f+3cG#3h&@Yy&0+1|9~mUWNd$P6Po8LKsGf62}Vd
zeA@hm<GAY|kn$Jr{{R2q>H4GF^+)p&j@ZK>F$M+(P*}p92n`pI6k}Bo17i&bqW}*p
zO9vywA2JLK3~T=X{}0yV$j8yb<irb#1CY-c85nrM`WP5kSQ!`?_(6__8VqGJFvKSo
N=f>wIX67+40028|IOqTX

diff --git a/worksheet1/src/task1.asm b/worksheet1/src/task1.asm
deleted file mode 100644
index 0442b2c..0000000
--- a/worksheet1/src/task1.asm
+++ /dev/null
@@ -1,17 +0,0 @@
-section .data
-    num1 dd 10
-    num2 dd 20
-    result dd 0
-
-section .text
-    global asm_main
-    extern print_int
-
-asm_main:
-    mov eax, [num1]
-    add eax, [num2]
-    mov [result], eax
-    push eax
-    call print_int
-    add esp, 4
-    ret
-- 
GitLab