4662
This commit is contained in:
parent
bccaa72227
commit
ed0e64a981
|
@ -35,4 +35,4 @@ write_stderr: # s : (address array byte) -> <void>
|
|||
5d/pop-to-EBP
|
||||
c3/return
|
||||
|
||||
# vim:ft=subx:nowrap:tw&
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -62,4 +62,4 @@ Newline:
|
|||
# data
|
||||
0a/newline
|
||||
|
||||
# vim:ft=subx:nowrap:tw&
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -258,4 +258,4 @@ Null_kernel_string:
|
|||
Abc_kernel_string:
|
||||
41/A 62/b 63/c 00/null
|
||||
|
||||
# vim:ft=subx:nowrap:tw&
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -59,4 +59,4 @@ mmap_new_segment: # type mmap_arg_struct
|
|||
# offset
|
||||
00 00 00 00 # 0 since MAP_ANONYMOUS is specified
|
||||
|
||||
# vim:ft=subx:nowrap:tw&
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -166,3 +166,5 @@ test_compare_inequal_strings_equal_lengths:
|
|||
# discard args
|
||||
81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP
|
||||
c3/return
|
||||
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -112,4 +112,4 @@ write_stdout: # s : (address array byte) -> <void>
|
|||
5d/pop-to-EBP
|
||||
c3/return
|
||||
|
||||
# vim:ft=subx:nowrap:so=0
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -104,4 +104,4 @@ test_factorial:
|
|||
# end
|
||||
c3/return
|
||||
|
||||
# vim:ft=subx:nowrap:so=0
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
b8/copy . . . . . . . 1/imm32 # copy to EAX
|
||||
cd/syscall 0x80/imm8
|
||||
|
||||
# vim:ft=subx
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -67,3 +67,5 @@ $argv_break:
|
|||
$argv_fail:
|
||||
b8/copy . . . . . . . 0/imm32 # copy to EAX
|
||||
c3/return
|
||||
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -346,4 +346,4 @@ Null_kernel_string:
|
|||
Abc_kernel_string:
|
||||
41/A 62/b 63/c 00/null
|
||||
|
||||
# vim:ft=subx:nowrap:so=0
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -40,4 +40,4 @@ mmap_new_segment: # type mmap_arg_struct
|
|||
# offset
|
||||
00 00 00 00 # 0 since MAP_ANONYMOUS is specified
|
||||
|
||||
# vim:ft=subx:nowrap:tw&
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
b8/copy . . . . . . . 1/imm32 # copy to EAX
|
||||
cd/syscall 0x80/imm8
|
||||
|
||||
# vim:ft=subx
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -32,4 +32,4 @@ $exit:
|
|||
b8/copy . . . . . . . 1/imm32 # copy to EAX
|
||||
cd/syscall 0x80/imm8
|
||||
|
||||
# vim:ft=subx:nowrap
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -39,4 +39,4 @@
|
|||
x:
|
||||
00 00 00 00 # space for read() to write to
|
||||
|
||||
# vim:ft=subx:nowrap
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -39,4 +39,4 @@
|
|||
b8/copy . . . . . . . 1/imm32/exit # copy to EAX
|
||||
cd/syscall 0x80/imm8
|
||||
|
||||
# vim:ft=subx:nowrap
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -32,4 +32,4 @@ x: # string to print
|
|||
48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 21 0a 00
|
||||
# H e l l o , ␣ w o r l d ! newline null
|
||||
|
||||
# vim:ft=subx:nowrap
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -100,4 +100,4 @@ b:
|
|||
filename:
|
||||
2e 66 6f 6f 00 00 00 00
|
||||
|
||||
# vim:ft=subx:nowrap:tw&
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -53,3 +53,5 @@ $ascii_length_loop:
|
|||
$ascii_length_ret:
|
||||
# return (result in EAX)
|
||||
c3/return
|
||||
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
|
@ -46,3 +46,5 @@ ascii_difference: # (s1, s2) : null-terminated ascii strings
|
|||
# a-b
|
||||
29/subtract 3/mod/direct 0/rm32/EAX . . . 1/r32/ECX . . # subtract ECX from EAX
|
||||
c3/return
|
||||
|
||||
# vim:nowrap:textwidth=0
|
||||
|
|
Loading…
Reference in New Issue