about summary refs log tree commit diff stats
path: root/subx/examples/ex4.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-09-20 21:38:51 -0700
committerKartik Agaram <vc@akkartik.com>2018-09-20 21:38:51 -0700
commit3fe714d3d463d2040f2089214e56d7825daf4c06 (patch)
tree525788e3a9fea4299823c947094f32fa89bffecc /subx/examples/ex4.subx
parent3364d19cd1fb854846e76b75abce081b5cdcf220 (diff)
downloadmu-3fe714d3d463d2040f2089214e56d7825daf4c06.tar.gz
4562
Diffstat (limited to 'subx/examples/ex4.subx')
-rw-r--r--subx/examples/ex4.subx6
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/examples/ex4.subx b/subx/examples/ex4.subx
index f018092b..bb0525e4 100644
--- a/subx/examples/ex4.subx
+++ b/subx/examples/ex4.subx
@@ -17,7 +17,7 @@
     # size = 1 character
   ba/copy                                                                                                                         1/imm32           # copy 1 to EDX
     # read(fd, x, size)
-  b8/copy                                                                                                                         3/imm32           # copy 3 to EAX
+  b8/copy                                                                                                                         3/imm32/read      # copy 3 to EAX
   cd/syscall                                                                                                                      0x80/imm8         # int 80h
 
   # write(stdout, x, 1)
@@ -28,11 +28,11 @@
     # size = 1 character
   ba/copy                                                                                                                         1/imm32           # copy 1 to EDX
     # write(fd, x, size)
-  b8/copy                                                                                                                         4/imm32           # copy 4 to EAX
+  b8/copy                                                                                                                         4/imm32/write     # copy 4 to EAX
   cd/syscall                                                                                                                      0x80/imm8         # int 80h
 
   # exit(EBX)
-  b8/copy                                                                                                                         1/imm32           # copy 1 to EAX
+  b8/copy                                                                                                                         1/imm32/exit      # copy 1 to EAX
   cd/syscall                                                                                                                      0x80/imm8         # int 80h
 
 == data
he?id=71679a3159037c353656b19e3b36ab303714bc15'>^
86c1c388 ^
1a3dc91e ^
45a26b11 ^

30b5f112 ^
fbc30231 ^

















cd2458c0 ^

0ae975c2 ^

b21edfaa ^
cd2458c0 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77