tsoding / pinpog

Ping-Pong-like game in Assembly that works without OS
MIT License
593 stars 37 forks source link

Replace GameState.state pointer with a simple running flag. #69

Closed edorfaus closed 5 years ago

edorfaus commented 5 years ago

Since there's only two states left, this both simplifies the code and saves 15 bytes.

Only the least significant bit of the flag byte is actually used, the rest are ignored, which makes it much easier to change the flag.

rexim commented 5 years ago

@edorfaus nice idea! Thank you for the contribution!