all repos — site @ 8d3f1a65a3b64046866ccf92cba0b44cc761a16f

source for my site, found at icyphox.sh

drafts/r2wars.md (view raw)

 1---
 2template:
 3url: r2wars
 4title: My r2wars attempts
 5subtitle: It's like Killer Robots, except in assembly
 6date: 2020-08-17
 7---
 8
 9[r2wars](https://github.com/radareorg/r2wars) is
10a [CoreWar](http://corewars.org)-like game thar runs within the radare2
11[ESIL](https://radare.gitbooks.io/radare2book/content/disassembling/esil.html)
12virtual machine. In short, you have two programs running in a shared
13memory space (1kb), with the goal of killing the other and surviving as
14long as possible. You're allowed to write your bots in x86, ARM and MIPS
15(32 and 64 bits).
16
17I'd initially considered writing my bots in ARM -- but x86's `pushad`
18won me over. And I didn't really feel like revising my ARM... maybe
19I should. We'll see. 
20
21## `bomb.x86-32.asm`
22
23This was the first bot I wrote. It's incredibly simple -- it carpet
24bombs the entire address space (`0x000` - `0x400`) with