diff options
Diffstat (limited to 'subx/examples/ex8.subx')
-rw-r--r-- | subx/examples/ex8.subx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/subx/examples/ex8.subx b/subx/examples/ex8.subx index 85fe1568..9d7255e1 100644 --- a/subx/examples/ex8.subx +++ b/subx/examples/ex8.subx @@ -19,6 +19,7 @@ # . 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 +Entry: # . prolog 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP # EAX = ascii-length(argv[1]) @@ -55,4 +56,6 @@ $ascii-length:end: # return EAX c3/return +== data 0x0a000000 + # . . vim:nowrap:textwidth=0 |