Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Witless code that I wrote for my own entertainment a couple months ago.

4: Adsense
  • You cannot reply to this topic
No replies to this topic

#1 General Awesome   Members   

205
Like
0Likes
Like

Posted 14 March 2014 - 12:38 AM

https://github.com/JohnLamontagne/RetroAssem/blob/master/src/RetroAssem%20Interpreter/Interpreter.cs

 

Luckily this project was just for fun (I was extremely bored). 

 

I mean, it isn't the worst thing that I've ever done (by far), but there's just so much wrong with the project in general.

 

List of things that are obviously wrong:

- For some reason, I have two different ways to halt the program: The Halt token, and the built in function call.

- I don't consider the fact that someone might want to use a hexadecimal number for things other than memory addresses throughout the code.

- I don't think I even spelled hexadecimal correctly throughout parts of the code. 

 

 

I-have-no-idea-what-I-am-doing.jpg


Edited by General Awesome, 14 March 2014 - 12:48 AM.