https://emile.space/blog/2020/10-10-r2wars/

radare2

; r2 --
[0x00000000]>

Evaluable Strings Intermediate Language (ESIL)

4,esp,-=,ebp,esp,=[4]
esp -= 4
4bytes(dword) [esp] = ebp

Emulation

[0x00000000]> aei      # initialize ESIL VM state
[0x00000000]> aeim     # initialize ESIL VM stack
[0x00000000]> aer      # handle ESIL registers
[0x00000000]> aer PC=0x0      # set the Program Counter
[0x00000000]> aer PC=0x0      # set the StackPointer


; git clone github.com/hanemile/r2wars
; cd r2wars
; nix develop
; CGO_ENABLED=0 go run ./... -t 1s -v ./bots/warrior0.asm ./bots/warrior1.as

https://emile.space/blog/2020/10-10-r2wars/

---

https://github.com/hanemile/r2wars

---

@hanemile@chaos.social