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 16 years ago

Okay?

PY 16 years ago

Incredible :D

TDOT 16 years ago

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

Cesar 16 years ago

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

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

s 16 years 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 16 years ago

You need some isometric chess pieces.

Dollar before #,cent after #

s 16 years ago

Postfix is all the craze, prefix only works with Sexprs

And who needs isometricness when you have an actual board?

uglyman 16 years ago

Holy Crap! 800 pages?

s 16 years ago

Almost

Mu6502 16 years ago

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