a1 Bearbeitung a

This commit is contained in:
Johannes Theiner 2018-10-18 12:38:02 +02:00
parent edbec0314d
commit 14f2ba66c1
8 changed files with 75 additions and 0 deletions

7
src/a0.1.add.asm Normal file
View File

@ -0,0 +1,7 @@
org 100h
cpu 8086
START: mov al, 8
mov bl, 20
add al, bl
jmp START

7
src/a0.1.sub.asm Normal file
View File

@ -0,0 +1,7 @@
org 100h
cpu 8086
START: mov al, 8
mov bl, 20
sub al, bl
jmp START

7
src/a0.2.and.asm Normal file
View File

@ -0,0 +1,7 @@
org 100h
cpu 8086
START: mov al, -8
mov bl, 13
and al, bl
jmp START

7
src/a0.2.or.asm Normal file
View File

@ -0,0 +1,7 @@
org 100h
cpu 8086
START: mov al, -8
mov bl, 13
or al, bl
jmp START

7
src/a0.3.add.asm Normal file
View File

@ -0,0 +1,7 @@
org 100h
cpu 8086
START: mov al, -1
mov bl, -1
add al, bl
jmp START

7
src/a0.3.xor.asm Normal file
View File

@ -0,0 +1,7 @@
org 100h
cpu 8086
START: mov al, -1
mov bl, -1
xor al, bl
jmp START

17
src/a1.asm Normal file
View File

@ -0,0 +1,17 @@
org 100h
cpu 8086
jmp START
BYTE1 db 32
db 'Hardwarenahes Programmieren'
times 4 db 0, '1'
dw 1, 2, 3, 4, 1234
dd 1234h
START: mov bx, BYTE1
WDH: mov al, [bx]
out 0, al
inc bx
jmp WDH

16
src/a2.asm Normal file
View File

@ -0,0 +1,16 @@
org 100h
cpu 8086
jmp START
BYTE1 db 32
db 'Hardwarenahes Programmieren'
times 4 db 0, '1'
dw 1, 2, 3, 4, 1234
dd 1234h
START: mov bx, BYTE1
WDH: mv al, [bx]
out 0, al
inc bx
jmp WDH