diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-02-15 17:20:57 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-02-15 17:20:57 -0800 |
commit | 9b16f190492f26e065f13f19e51c4e2180a21143 (patch) | |
tree | 7f29f176beba335f42a8ecab60f049bcf880db8c /subx/examples/ex12.subx | |
parent | 5522bc9ec5ee5074ac5b573b66cbec8cd93ccae5 (diff) | |
download | mu-9b16f190492f26e065f13f19e51c4e2180a21143.tar.gz |
4973
Support immediate operands in the data segment in all the ways we support them in the code segment.
Diffstat (limited to 'subx/examples/ex12.subx')
-rw-r--r-- | subx/examples/ex12.subx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/subx/examples/ex12.subx b/subx/examples/ex12.subx index 9cf5e14a..4518aecc 100644 --- a/subx/examples/ex12.subx +++ b/subx/examples/ex12.subx @@ -29,16 +29,16 @@ # various constants used here were found in the Linux sources (search for file mman-common.h) Mmap-new-segment: # type mmap_arg_struct # addr - 00 00 00 00 # null + 0/imm32 # len - 00 01 00 00 # 0x1000 + 0x100/imm32 # protection flags - 03 00 00 00 # PROT_READ | PROT_WRITE + 3/imm32 # PROT_READ | PROT_WRITE # sharing flags - 22 00 00 00 # MAP_PRIVATE | MAP_ANONYMOUS + 0x22/imm32 # MAP_PRIVATE | MAP_ANONYMOUS # fd - ff ff ff ff # -1 since MAP_ANONYMOUS is specified + -1/imm32 # since MAP_ANONYMOUS is specified # offset - 00 00 00 00 # 0 since MAP_ANONYMOUS is specified + 0/imm32 # since MAP_ANONYMOUS is specified # . . vim:nowrap:textwidth=0 |