4.50

    1. !INCLUDE "./code/switch/switch.ys"

    test function switchv in main, using idx 1,-1,3,5, store result into array

    test and output, watch changes to memory:

    1. ../sim/misc/yas switch.ys
    2. ../sim/misc/yis switch.yo
    3. Stopped in 133 steps at PC = 0x13. Status 'HLT', CC Z=0 S=0 O=0
    4. Changes to registers:
    5. %rax: 0x0000000000000000 0x0000000000000bbb
    6. %rcx: 0x0000000000000000 0x00000000000000e7
    7. %rdx: 0x0000000000000000 0xfffffffffffffffd
    8. %rsp: 0x0000000000000000 0x0000000000000200
    9. %rdi: 0x0000000000000000 0x00000000000001a8
    10. %r8: 0x0000000000000000 0x0000000000000008
    11. %r11: 0x0000000000000000 0x0000000000000001
    12. Changes to memory:
    13. 0x0000: 0x000000000200f430 0x0000000000000ddd
    14. 0x0008: 0x0000000038800000 0x0000000000000ddd
    15. 0x0010: 0x0000000000000000 0x0000000000000ccc
    16. 0x0018: 0x0000000000000000 0x0000000000000bbb