aboutsummaryrefslogtreecommitdiffhomepage
path: root/guest/guest16.S
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-05-29 11:17:20 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-05-29 11:17:20 +0200
commit4ad0f2f07280651ed4e20f50715ebb332d3b50bf (patch)
tree108a7d87a2eb44551609d2316342dcbad942c561 /guest/guest16.S
parent3492279f78d4470caf157a834ef5216bc319d799 (diff)
downloadmini-kvm-rs-4ad0f2f07280651ed4e20f50715ebb332d3b50bf.tar.gz
mini-kvm-rs-4ad0f2f07280651ed4e20f50715ebb332d3b50bf.zip
implicit notation for outsb, fix msg_len size
Diffstat (limited to 'guest/guest16.S')
-rw-r--r--guest/guest16.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/guest/guest16.S b/guest/guest16.S
index 7f0be0e..4851694 100644
--- a/guest/guest16.S
+++ b/guest/guest16.S
@@ -6,7 +6,7 @@
mov dx, 0x1000 // Output port.
lea si, [msg] // Address of string.
mov cx, [msg_len] // Len of string.
- rep outsb dx, ds:[si] // Write out string bytes.
+ rep outsb // Write ds:si to output port dx.
// Trigger `KVM_EXIT_MMIO` by writing to non mapped physical address.
mov byte ptr ds:[0x2000], 0xaa
@@ -18,4 +18,4 @@
msg:
.asciz "Hello from Real Mode!\n"
msg_len:
- .byte .-msg
+ .2byte .-msg