Add pxe test + convert prc_256.py to pure r2 (#16838)
This commit is contained in:
parent
fc4aaa9c46
commit
055ee0474a
|
@ -10,6 +10,7 @@ jobs:
|
|||
name: ${{ matrix.name }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
name: [linux-acr-gcc-tests, linux-acr-clang-build, linux-meson-gcc-build, linux-meson-gcc-newshell-tests, macos-clang-tests]
|
||||
include:
|
||||
|
|
|
@ -1796,7 +1796,7 @@ RUN
|
|||
NAME=two-operand line highlight; asm.highlight ecHw fix; ec wordhl/linehl
|
||||
FILE=bins/elf/redpill
|
||||
CMDS=<<EOF
|
||||
. bins/other/palette.r2
|
||||
. scripts/palette.r2
|
||||
e scr.color=3
|
||||
e emu.str=true
|
||||
e emu.pre=true
|
||||
|
|
|
@ -710,7 +710,7 @@ RUN
|
|||
NAME=io.unalloc, io.unalloc.ch and prc
|
||||
FILE=bins/elf/analysis/tiny.elf
|
||||
CMDS=<<EOF
|
||||
. bins/other/palette.r2
|
||||
. scripts/palette.r2
|
||||
(print; prc 0x00010032-0x0000fffa @ 0x0000fffa)
|
||||
e io.unalloc=true
|
||||
e scr.color=0
|
||||
|
@ -744,8 +744,10 @@ RUN
|
|||
NAME=prc text color
|
||||
FILE=-
|
||||
CMDS=<<EOF
|
||||
. bins/other/palette.r2
|
||||
.. bins/src/prc_256.py
|
||||
. scripts/palette.r2
|
||||
woe 0 0xff 1
|
||||
(test_flag; f `p8 1`)
|
||||
.(test_flag) @@s:0 0x100 1
|
||||
e scr.color=3
|
||||
prc 256
|
||||
EOF
|
||||
|
|
|
@ -43,7 +43,7 @@ RUN
|
|||
NAME=io.unalloc, io.unalloc.ch and pxc
|
||||
FILE=bins/elf/analysis/tiny.elf
|
||||
CMDS=<<EOF
|
||||
. bins/other/palette.r2
|
||||
. scripts/palette.r2
|
||||
e io.unalloc=true
|
||||
(dump; xc 0x00010060-0x0000ffd0 @ 0x0000ffd0-6)
|
||||
e scr.color=3
|
||||
|
@ -120,3 +120,29 @@ EXPECT=<<EOF
|
|||
0x00600b08 0x00000000004005ae ..@..... @reloc.fflush 4195758 (.plt) R X 'push 5'
|
||||
EOF
|
||||
RUN
|
||||
|
||||
NAME=pxe
|
||||
FILE=-
|
||||
CMDS=<<EOF
|
||||
woe 0 0xff 1
|
||||
pxe 256
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
0x00000000 🌀 🌂 🌅 🌈 🌙 🌞 🌟 🌠 🌰 🌱 🌲 🌳 🌴 🌵 🌷 🌸 ................
|
||||
0x00000010 🌹 🌺 🌻 🌼 🌽 🌾 🌿 🍀 🍁 🍂 🍃 🍄 🍅 🍆 🍇 🍈 ................
|
||||
0x00000020 🍉 🍊 🍋 🍌 🍍 🍎 🍏 🍐 🍑 🍒 🍓 🍔 🍕 🍖 🍗 🍘 !"#$%&'()*+,-./
|
||||
0x00000030 🍜 🍝 🍞 🍟 🍠 🍡 🍢 🍣 🍤 🍥 🍦 🍧 🍨 🍩 🍪 🍫 0123456789:;<=>?
|
||||
0x00000040 🍬 🍭 🍮 🍯 🍰 🍱 🍲 🍳 🍴 🍵 🍶 🍷 🍸 🍹 🍺 🍻 @ABCDEFGHIJKLMNO
|
||||
0x00000050 🍼 🎀 🎁 🎂 🎃 🎄 🎅 🎈 🎉 🎊 🎋 🎌 🎍 🎎 🎏 🎒 PQRSTUVWXYZ[\]^_
|
||||
0x00000060 🎓 🎠 🎡 🎢 🎣 🎤 🎥 🎦 🎧 🎨 🎩 🎪 🎫 🎬 🎭 🎮 `abcdefghijklmno
|
||||
0x00000070 🎯 🎰 🎱 🎲 🎳 🎴 🎵 🎷 🎸 🎹 🎺 🎻 🎽 🎾 🎿 🏀 pqrstuvwxyz{|}~.
|
||||
0x00000080 🏁 🏂 🏃 🏄 🏆 🏇 🏈 🏉 🏊 🐀 🐁 🐂 🐃 🐄 🐅 🐆 ................
|
||||
0x00000090 🐇 🐈 🐉 🐊 🐋 🐌 🐍 🐎 🐏 🐐 🐑 🐒 🐓 🐔 🐕 🐖 ................
|
||||
0x000000a0 🐗 🐘 🐙 🐚 🐛 🐜 🐝 🐞 🐟 🐠 🐡 🐢 🐣 🐤 🐥 🐦 ................
|
||||
0x000000b0 🐧 🐨 🐩 🐪 🐫 🐬 🐭 🐮 🐯 🐰 🐱 🐲 🐳 🐴 🐵 🐶 ................
|
||||
0x000000c0 🐷 🐸 🐹 🐺 🐻 🐼 🐽 🐾 👀 👂 👃 👄 👅 👆 👇 👈 ................
|
||||
0x000000d0 👉 👊 👋 👌 👍 👎 👏 👐 👑 👒 👓 👔 👕 👖 👗 👘 ................
|
||||
0x000000e0 👙 👚 👛 👜 👝 👞 👟 👠 👡 👢 👣 👤 👥 👦 👧 👨 ................
|
||||
0x000000f0 👩 👪 👮 👯 👺 👻 👼 👽 👾 👿 💀 💁 💂 💃 💄 💅 ................
|
||||
EOF
|
||||
RUN
|
||||
|
|
|
@ -0,0 +1,65 @@
|
|||
ec comment rgb:c50f1f
|
||||
ec usrcmt rgb:cccccc
|
||||
ec args rgb:c19c00
|
||||
ec fname rgb:c50f1f
|
||||
ec floc rgb:3a96dd
|
||||
ec fline rgb:3a96dd
|
||||
ec flag rgb:3a96dd
|
||||
ec label rgb:3a96dd
|
||||
ec help rgb:13a10e
|
||||
ec flow rgb:3a96dd
|
||||
ec flow2 rgb:0037da
|
||||
ec prompt rgb:c19c00
|
||||
ec offset rgb:13a10e
|
||||
ec input rgb:cccccc
|
||||
ec invalid rgb:e74856 . bold
|
||||
ec other rgb:cccccc
|
||||
ec b0x00 rgb:13a10e
|
||||
ec b0x7f rgb:3a96dd
|
||||
ec b0xff rgb:c50f1f
|
||||
ec math rgb:c19c00
|
||||
ec bin rgb:3a96dd
|
||||
ec btext rgb:c19c00
|
||||
ec push rgb:881798
|
||||
ec pop rgb:b4009e . bold
|
||||
ec crypto rgb:0037da
|
||||
ec jmp rgb:13a10e
|
||||
ec cjmp rgb:13a10e
|
||||
ec call rgb:16c60c . bold
|
||||
ec nop rgb:0037da
|
||||
ec ret rgb:c50f1f
|
||||
ec trap rgb:e74856 . bold
|
||||
ec ucall rgb:13a10e
|
||||
ec ujmp rgb:13a10e
|
||||
ec swi rgb:881798
|
||||
ec cmp rgb:3a96dd
|
||||
ec reg rgb:3a96dd
|
||||
ec creg rgb:3a96dd
|
||||
ec num rgb:c19c00
|
||||
ec mov rgb:cccccc
|
||||
ec func_var rgb:cccccc
|
||||
ec func_var_type rgb:0037da
|
||||
ec func_var_addr rgb:3a96dd
|
||||
ec widget_bg rgb:303030
|
||||
ec widget_sel rgb:c50f1f
|
||||
ec ai.read rgb:13a10e
|
||||
ec ai.write rgb:0037da
|
||||
ec ai.exec rgb:c50f1f
|
||||
ec ai.seq rgb:881798
|
||||
ec ai.ascii rgb:c19c00
|
||||
ec graph.box rgb:000000
|
||||
ec graph.box2 rgb:0037da
|
||||
ec graph.box3 rgb:881798
|
||||
ec graph.box4 rgb:767676
|
||||
ec graph.true rgb:13a10e
|
||||
ec graph.false rgb:c50f1f
|
||||
ec graph.trufae rgb:0037da
|
||||
ec graph.current rgb:0037da
|
||||
ec graph.traced rgb:c19c00
|
||||
ec gui.cflow rgb:c19c00
|
||||
ec gui.dataoffset rgb:c19c00
|
||||
ec gui.background rgb:0c0c0c
|
||||
ec gui.alt_background rgb:cccccc
|
||||
ec gui.border rgb:0c0c0c
|
||||
ec wordhl rgb:c50f1f
|
||||
ec linehl rgb:000080
|
Loading…
Reference in New Issue