Omnimaga

General Discussion => Other Discussions => Humour and Jokes => Topic started by: Keoni29 on March 02, 2013, 08:22:47 am

Title: Very specific CPU - Instruction set designed for one game.
Post by: Keoni29 on March 02, 2013, 08:22:47 am
Ok this goes as follows: Think of a game and make up a very specific instruction set for it. The next person guesses which game it's for and posts another very specific instruction set.

Begin!
Title: Re: Very specific CPU - Instruction set designed for one game.
Post by: blue_bear_94 on March 02, 2013, 11:14:03 am
ldm x,yy ;loads map #x from memory location yy
invm x ;goes to map #x
engage xx ;engage in a battle with enemy data stored at xx
set x,y
set xx,yy ;assigns values to registers
set (x),y
set (xx),yy ;assigns values to memory locations
die ;display a "You died" screen
ret
ret c
ret z
cp x,y
cp xx,yy
add ...
adc ...
sub ...
sbc ...
sl ...
sr ...
rl ...
rr ...
jump xx ;absolute
jmpr x ;relative
Title: Re: Very specific CPU - Instruction set designed for one game.
Post by: ben_g on March 02, 2013, 06:32:10 pm
An RPG?
Title: Re: Very specific CPU - Instruction set designed for one game.
Post by: Freyaday on March 02, 2013, 08:20:25 pm
yl: prints "The Game"
Title: Re: Very specific CPU - Instruction set designed for one game.
Post by: blue_bear_94 on March 02, 2013, 11:34:36 pm
The Game.

ben_g: Correct!

mvr x
mva x
lob x
die
ret
...