diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-10-01 15:12:56 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-10-01 15:14:36 -0700 |
commit | 4224ec8188bc0e6f27e7063a8f5ec3355e892570 (patch) | |
tree | 226e148fb66eecfd314b628b9f09380bfc2e99b2 /subx | |
parent | 1666b12f37b2714e136d07db52e115ab14b06a20 (diff) | |
download | mu-4224ec8188bc0e6f27e7063a8f5ec3355e892570.tar.gz |
4642
Diffstat (limited to 'subx')
-rw-r--r-- | subx/050write_stderr.subx | 6 | ||||
-rw-r--r-- | subx/051test.subx | 6 | ||||
-rw-r--r-- | subx/052kernel_string_equal.subx | 2 |
3 files changed, 14 insertions, 0 deletions
diff --git a/subx/050write_stderr.subx b/subx/050write_stderr.subx index d6f4784d..b595baec 100644 --- a/subx/050write_stderr.subx +++ b/subx/050write_stderr.subx @@ -1,5 +1,9 @@ == code +# instruction effective address operand displacement immediate +# op subop mod rm32 base index scale r32 +# 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 + write_stderr: # s : (address array byte) -> <void> # prolog 55/push-EBP @@ -30,3 +34,5 @@ write_stderr: # s : (address array byte) -> <void> 89/copy 3/mod/direct 4/rm32/ESP . . . 5/r32/EBP . . # copy EBP to ESP 5d/pop-to-EBP c3/return + +# vim:ft=subx:nowrap:tw& diff --git a/subx/051test.subx b/subx/051test.subx index 8edcee49..c8c4b89c 100644 --- a/subx/051test.subx +++ b/subx/051test.subx @@ -1,5 +1,9 @@ == code +# instruction effective address operand displacement immediate +# op subop mod rm32 base index scale r32 +# 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 + # print msg to stderr if a != b, otherwise print "." check_ints_equal: # (a : int, b : int, msg : (address array byte)) -> boolean # prolog @@ -57,3 +61,5 @@ Newline: 01 00 00 00 # data 0a/newline + +# vim:ft=subx:nowrap:tw& diff --git a/subx/052kernel_string_equal.subx b/subx/052kernel_string_equal.subx index 59bf56c5..1a8a3b64 100644 --- a/subx/052kernel_string_equal.subx +++ b/subx/052kernel_string_equal.subx @@ -256,3 +256,5 @@ Null_kernel_string: 00/null Abc_kernel_string: 41/A 62/b 63/c 00/null + +# vim:ft=subx:nowrap:tw& |