summaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-08-23 16:22:13 +0200
committerRaymaekers Luca <luca@spacehb.net>2025-08-23 16:22:13 +0200
commitea20bd9b5bcff9db1d86d83188e1e899799f324b (patch)
tree615e2f00e385e93061524c9647b64010ba7df3dd /src/data
checkpoint
Diffstat (limited to 'src/data')
-rw-r--r--src/data/listing_0043_immediate_movsbin0 -> 24 bytes
-rw-r--r--src/data/listing_0043_immediate_movs.asm27
-rw-r--r--src/data/listing_0043_immediate_movs.txt20
-rw-r--r--src/data/listing_0044_register_movsbin0 -> 28 bytes
-rw-r--r--src/data/listing_0044_register_movs.asm32
-rw-r--r--src/data/listing_0044_register_movs.txt24
-rw-r--r--src/data/listing_0045_challenge_register_movs1
-rw-r--r--src/data/listing_0045_challenge_register_movs.asm43
-rw-r--r--src/data/listing_0045_challenge_register_movs.txt35
9 files changed, 182 insertions, 0 deletions
diff --git a/src/data/listing_0043_immediate_movs b/src/data/listing_0043_immediate_movs
new file mode 100644
index 0000000..a965538
--- /dev/null
+++ b/src/data/listing_0043_immediate_movs
Binary files differ
diff --git a/src/data/listing_0043_immediate_movs.asm b/src/data/listing_0043_immediate_movs.asm
new file mode 100644
index 0000000..475afaf
--- /dev/null
+++ b/src/data/listing_0043_immediate_movs.asm
@@ -0,0 +1,27 @@
+; ========================================================================
+;
+; (C) Copyright 2023 by Molly Rocket, Inc., All Rights Reserved.
+;
+; This software is provided 'as-is', without any express or implied
+; warranty. In no event will the authors be held liable for any damages
+; arising from the use of this software.
+;
+; Please see https://computerenhance.com for further information
+;
+; ========================================================================
+
+; ========================================================================
+; LISTING 43
+; ========================================================================
+
+bits 16
+
+mov ax, 1
+mov bx, 2
+mov cx, 3
+mov dx, 4
+
+mov sp, 5
+mov bp, 6
+mov si, 7
+mov di, 8
diff --git a/src/data/listing_0043_immediate_movs.txt b/src/data/listing_0043_immediate_movs.txt
new file mode 100644
index 0000000..fb36287
--- /dev/null
+++ b/src/data/listing_0043_immediate_movs.txt
@@ -0,0 +1,20 @@
+--- test\listing_0043_immediate_movs execution ---
+mov ax, 1 ; ax:0x0->0x1
+mov bx, 2 ; bx:0x0->0x2
+mov cx, 3 ; cx:0x0->0x3
+mov dx, 4 ; dx:0x0->0x4
+mov sp, 5 ; sp:0x0->0x5
+mov bp, 6 ; bp:0x0->0x6
+mov si, 7 ; si:0x0->0x7
+mov di, 8 ; di:0x0->0x8
+
+Final registers:
+ ax: 0x0001 (1)
+ bx: 0x0002 (2)
+ cx: 0x0003 (3)
+ dx: 0x0004 (4)
+ sp: 0x0005 (5)
+ bp: 0x0006 (6)
+ si: 0x0007 (7)
+ di: 0x0008 (8)
+
diff --git a/src/data/listing_0044_register_movs b/src/data/listing_0044_register_movs
new file mode 100644
index 0000000..346ff45
--- /dev/null
+++ b/src/data/listing_0044_register_movs
Binary files differ
diff --git a/src/data/listing_0044_register_movs.asm b/src/data/listing_0044_register_movs.asm
new file mode 100644
index 0000000..58988fe
--- /dev/null
+++ b/src/data/listing_0044_register_movs.asm
@@ -0,0 +1,32 @@
+; ========================================================================
+;
+; (C) Copyright 2023 by Molly Rocket, Inc., All Rights Reserved.
+;
+; This software is provided 'as-is', without any express or implied
+; warranty. In no event will the authors be held liable for any damages
+; arising from the use of this software.
+;
+; Please see https://computerenhance.com for further information
+;
+; ========================================================================
+
+; ========================================================================
+; LISTING 44
+; ========================================================================
+
+bits 16
+
+mov ax, 1
+mov bx, 2
+mov cx, 3
+mov dx, 4
+
+mov sp, ax
+mov bp, bx
+mov si, cx
+mov di, dx
+
+mov dx, sp
+mov cx, bp
+mov bx, si
+mov ax, di
diff --git a/src/data/listing_0044_register_movs.txt b/src/data/listing_0044_register_movs.txt
new file mode 100644
index 0000000..e46c56c
--- /dev/null
+++ b/src/data/listing_0044_register_movs.txt
@@ -0,0 +1,24 @@
+--- test\listing_0044_register_movs execution ---
+mov ax, 1 ; ax:0x0->0x1
+mov bx, 2 ; bx:0x0->0x2
+mov cx, 3 ; cx:0x0->0x3
+mov dx, 4 ; dx:0x0->0x4
+mov sp, ax ; sp:0x0->0x1
+mov bp, bx ; bp:0x0->0x2
+mov si, cx ; si:0x0->0x3
+mov di, dx ; di:0x0->0x4
+mov dx, sp ; dx:0x4->0x1
+mov cx, bp ; cx:0x3->0x2
+mov bx, si ; bx:0x2->0x3
+mov ax, di ; ax:0x1->0x4
+
+Final registers:
+ ax: 0x0004 (4)
+ bx: 0x0003 (3)
+ cx: 0x0002 (2)
+ dx: 0x0001 (1)
+ sp: 0x0001 (1)
+ bp: 0x0002 (2)
+ si: 0x0003 (3)
+ di: 0x0004 (4)
+
diff --git a/src/data/listing_0045_challenge_register_movs b/src/data/listing_0045_challenge_register_movs
new file mode 100644
index 0000000..dd781b2
--- /dev/null
+++ b/src/data/listing_0045_challenge_register_movs
@@ -0,0 +1 @@
+¸""»DD¹ffºˆˆŽÐŽÛŽÁ°·3±U¶wˆÜˆñŽÐŽÛŽÁŒÔŒÝŒÆ‰× \ No newline at end of file
diff --git a/src/data/listing_0045_challenge_register_movs.asm b/src/data/listing_0045_challenge_register_movs.asm
new file mode 100644
index 0000000..9e25fda
--- /dev/null
+++ b/src/data/listing_0045_challenge_register_movs.asm
@@ -0,0 +1,43 @@
+; ========================================================================
+;
+; (C) Copyright 2023 by Molly Rocket, Inc., All Rights Reserved.
+;
+; This software is provided 'as-is', without any express or implied
+; warranty. In no event will the authors be held liable for any damages
+; arising from the use of this software.
+;
+; Please see https://computerenhance.com for further information
+;
+; ========================================================================
+
+; ========================================================================
+; LISTING 45
+; ========================================================================
+
+bits 16
+
+mov ax, 0x2222
+mov bx, 0x4444
+mov cx, 0x6666
+mov dx, 0x8888
+
+mov ss, ax
+mov ds, bx
+mov es, cx
+
+mov al, 0x11
+mov bh, 0x33
+mov cl, 0x55
+mov dh, 0x77
+
+mov ah, bl
+mov cl, dh
+
+mov ss, ax
+mov ds, bx
+mov es, cx
+
+mov sp, ss
+mov bp, ds
+mov si, es
+mov di, dx
diff --git a/src/data/listing_0045_challenge_register_movs.txt b/src/data/listing_0045_challenge_register_movs.txt
new file mode 100644
index 0000000..66c8c7b
--- /dev/null
+++ b/src/data/listing_0045_challenge_register_movs.txt
@@ -0,0 +1,35 @@
+--- test\listing_0045_challenge_register_movs execution ---
+mov ax, 8738 ; ax:0x0->0x2222
+mov bx, 17476 ; bx:0x0->0x4444
+mov cx, 26214 ; cx:0x0->0x6666
+mov dx, 34952 ; dx:0x0->0x8888
+mov ss, ax ; ss:0x0->0x2222
+mov ds, bx ; ds:0x0->0x4444
+mov es, cx ; es:0x0->0x6666
+mov al, 17 ; ax:0x2222->0x2211
+mov bh, 51 ; bx:0x4444->0x3344
+mov cl, 85 ; cx:0x6666->0x6655
+mov dh, 119 ; dx:0x8888->0x7788
+mov ah, bl ; ax:0x2211->0x4411
+mov cl, dh ; cx:0x6655->0x6677
+mov ss, ax ; ss:0x2222->0x4411
+mov ds, bx ; ds:0x4444->0x3344
+mov es, cx ; es:0x6666->0x6677
+mov sp, ss ; sp:0x0->0x4411
+mov bp, ds ; bp:0x0->0x3344
+mov si, es ; si:0x0->0x6677
+mov di, dx ; di:0x0->0x7788
+
+Final registers:
+ ax: 0x4411 (17425)
+ bx: 0x3344 (13124)
+ cx: 0x6677 (26231)
+ dx: 0x7788 (30600)
+ sp: 0x4411 (17425)
+ bp: 0x3344 (13124)
+ si: 0x6677 (26231)
+ di: 0x7788 (30600)
+ es: 0x6677 (26231)
+ ss: 0x4411 (17425)
+ ds: 0x3344 (13124)
+