about summary refs log tree commit diff stats
path: root/linux/random.subx
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-07-20 07:30:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-07-20 08:43:25 -0700
commit13ef425825cef5fa30f7eb68688b6d114ecbe554 (patch)
treea9853e61dd9fa39a4cf8f8c1ff5e79171e5ce9c3 /linux/random.subx
parent5f254d0d02d8d6d61ca57ef4188110f11032a930 (diff)
downloadmu-13ef425825cef5fa30f7eb68688b6d114ecbe554.tar.gz
.
Diffstat (limited to 'linux/random.subx')
-rw-r--r--linux/random.subx6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/random.subx b/linux/random.subx
index 639638cc..d7bc03ac 100644
--- a/linux/random.subx
+++ b/linux/random.subx
@@ -10,7 +10,7 @@
 # . 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes
 
 Entry:
-    # stream/esi = syscall(open, "/dev/null", O_RDONLY, 0)  # we can't use 'fd' because it looks like a hex byte
+    # stream/esi = syscall_open("/dev/null", O_RDONLY, 0)  # we can't use 'fd' because it looks like a hex byte
     bb/copy-to-ebx  Filename/imm32
     b9/copy-to-ecx  0/imm32/rdonly
     ba/copy-to-edx  0x180/imm32/fixed-perms
@@ -20,7 +20,7 @@ Entry:
 
 $loop:
 
-    # syscall(read, Stream, N, 4)
+    # syscall_read(Stream, N, 4)
     89/copy                         3/mod/direct    3/rm32/ebx    .           .             .           6/r32/esi   .               .                 # copy esi to ebx
     b9/copy-to-ecx  N/imm32
     ba/copy-to-edx  4/imm32/size
@@ -44,7 +44,7 @@ $loop:
 
     eb/jump  $loop/disp8
 
-    # syscall(exit, 0)
+    # syscall_exit(0)
     bb/copy-to-ebx  0/imm32
     e8/call  syscall_exit/disp32