For less than 2$

Posted by s on Dec. 3, 2008, 3:38 p.m.

Almost 800 pages focused on primarily King's pawn and Queen's pawn opening

With a few extensions to Postal's macro system[1], I have been able to implement if. While loops seem to be in sight, I'm unsure of that oddity we know as switch

[1]Block structures which pass the macro blocks of code and ## to give each macro a unique ID. I'll probably have to loosen it to not have to have the { after the keyword to get && and || shortcircuiting

macro if.1 === asm{je ENDIF##} :0: ENDIF##: ;

macro if.2 === asm{je ELSE##} :0: goto:ENDIF## ELSE##: :1: ENDIF##: ;

Which can then be used as

2x1011 4 + 5 * : if{**}{+}

Which is equivalent to

push 11

push 4

stackadd

push 5

stackmul

stackdup

stackcmp

je ELSE3

stackpow

jmp ENDIF3

ELSE3:

stackadd

ENDIF3:

Comments

Requiem 15 years, 5 months ago

Okay?

PY 15 years, 5 months ago

Incredible :D

TDOT 15 years, 5 months ago

800 pages!? That doesn't even seem possible XD

Cesar 15 years, 5 months ago

Isn't the dollar sign supposed to go before the number?

Also, does that involve huge font and lots of pictures?

s 15 years, 5 months ago

Before the number is English, I prefer the French style of making it more like a unit

It involves quite a few chess board images and lists of moves. Text is normal, and it is quite wide/high

Now front page scroungers git except this isn't fronted or something I don't know

Mu6502 15 years, 5 months ago

You need some isometric chess pieces.

Dollar before #,cent after #

s 15 years, 5 months ago

Postfix is all the craze, prefix only works with Sexprs

And who needs isometricness when you have an actual board?

uglyman 15 years, 4 months ago

Holy Crap! 800 pages?

s 15 years, 4 months ago

Almost

Mu6502 15 years, 4 months ago

If you were to code a chess game,I could carve,I mean pixel a board & some pieces for ya.