diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-05-17 21:32:02 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-05-17 21:32:02 -0700 |
commit | 3bde204dfcd26cc3d80cfe58910574c5e364de3e (patch) | |
tree | c717cbac7d18b390f7ea335d7433d23594b9f0b0 /subx | |
parent | d2308421a7d0f9cab0476c0aff6de9d55d6b7f42 (diff) | |
download | mu-3bde204dfcd26cc3d80cfe58910574c5e364de3e.tar.gz |
another phase that supports the new segment syntax
Current state: ✓ hex.subx (no changes required) survey.subx ✓ pack.subx (fixed here) assort.subx ✓ dquotes.subx (has failing tests for other reasons)
Diffstat (limited to 'subx')
-rwxr-xr-x | subx/apps/dquotes | bin | 22932 -> 25223 bytes | |||
-rw-r--r-- | subx/apps/dquotes.subx | 36 |
2 files changed, 18 insertions, 18 deletions
diff --git a/subx/apps/dquotes b/subx/apps/dquotes index ac7072c9..4f7a6bec 100755 --- a/subx/apps/dquotes +++ b/subx/apps/dquotes Binary files differdiff --git a/subx/apps/dquotes.subx b/subx/apps/dquotes.subx index e44a2c41..6d8b0040 100644 --- a/subx/apps/dquotes.subx +++ b/subx/apps/dquotes.subx @@ -425,12 +425,12 @@ test-convert-is-idempotent-by-default: # initialize input (meta comments in parens) # # comment 1 # # comment 2 indented - # == code (new segment) + # == code 0x1 (new segment) # # comment 3 inside a segment # 1 # (empty line) # 2 3 # comment 4 inline with other contents - # == data (new segment) + # == data 0x2 (new segment) # 4 5/imm32 # . write(_test-input-stream, "# comment 1\n") # . . push args @@ -448,9 +448,9 @@ test-convert-is-idempotent-by-default: e8/call write/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # . write(_test-input-stream, "== code\n") + # . write(_test-input-stream, "== code 0x1\n") # . . push args - 68/push "== code\n"/imm32 + 68/push "== code 0x1\n"/imm32 68/push _test-input-stream/imm32 # . . call e8/call write/disp32 @@ -488,9 +488,9 @@ test-convert-is-idempotent-by-default: e8/call write/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # . write(_test-input-stream, "== data\n") + # . write(_test-input-stream, "== data 0x2\n") # . . push args - 68/push "== data\n"/imm32 + 68/push "== data 0x2\n"/imm32 68/push _test-input-stream/imm32 # . . call e8/call write/disp32 @@ -522,12 +522,12 @@ test-convert-is-idempotent-by-default: # check output # (comment dropped for now) # (comment dropped for now) - # == code + # == code 0x1 # (comment dropped for now) # 1 # (comment dropped for now) # 2 3 - # == data + # == data 0x2 # 4 5/imm32 # We don't care right now what exactly happens to comments. Trailing spaces are also minor details. #? # dump output {{{ @@ -574,10 +574,10 @@ test-convert-is-idempotent-by-default: e8/call check-next-stream-line-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP - # . check-next-stream-line-equal(_test-output-stream, "== code ", msg) + # . check-next-stream-line-equal(_test-output-stream, "== code 0x1 ", msg) # . . push args 68/push "F - test-convert-is-idempotent-by-default/2"/imm32 - 68/push "== code "/imm32 + 68/push "== code 0x1 "/imm32 68/push _test-output-stream/imm32 # . . call e8/call check-next-stream-line-equal/disp32 @@ -619,10 +619,10 @@ test-convert-is-idempotent-by-default: e8/call check-next-stream-line-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP - # . check-next-stream-line-equal(_test-output-stream, "== data ", msg) + # . check-next-stream-line-equal(_test-output-stream, "== data 0x2 ", msg) # . . push args 68/push "F - test-convert-is-idempotent-by-default/7"/imm32 - 68/push "== data "/imm32 + 68/push "== data 0x2 "/imm32 68/push _test-output-stream/imm32 # . . call e8/call check-next-stream-line-equal/disp32 @@ -683,7 +683,7 @@ test-convert-processes-string-literals: # == code (new segment) # 1 "a"/x # 2 "bc"/y - 68/push "== code\n"/imm32 + 68/push "== code 0x1\n"/imm32 68/push _test-input-stream/imm32 # . . call e8/call write/disp32 @@ -721,7 +721,7 @@ test-convert-processes-string-literals: # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP # check output - # == code + # == code 0x1 # 1 _string1/x # 2 _string2/y # == data @@ -769,10 +769,10 @@ test-convert-processes-string-literals: # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP # }}} - # . check-next-stream-line-equal(_test-output-stream, "== code ", msg) + # . check-next-stream-line-equal(_test-output-stream, "== code 0x1 ", msg) # . . push args 68/push "F - test-convert-processes-string-literals/0"/imm32 - 68/push "== code "/imm32 + 68/push "== code 0x1 "/imm32 68/push _test-output-stream/imm32 # . . call e8/call check-next-stream-line-equal/disp32 @@ -796,10 +796,10 @@ test-convert-processes-string-literals: e8/call check-next-stream-line-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP - # . check-next-stream-line-equal(_test-output-stream, "== data", msg) + # . check-next-stream-line-equal(_test-output-stream, "== data ", msg) # . . push args 68/push "F - test-convert-processes-string-literals/3"/imm32 - 68/push "== data"/imm32 + 68/push "== data "/imm32 68/push _test-output-stream/imm32 # . . call e8/call check-next-stream-line-equal/disp32 |