Author Topic: My schoolwork got rejected...  (Read 15396 times)

0 Members and 1 Guest are viewing this topic.

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: My schoolwork got rejected...
« Reply #30 on: May 19, 2010, 11:36:30 pm »
Imagine a project of 6k lines of this and the migraine it would cause, even if its faster. Also, comments are always a good idea whenever clever code is employed.
I can imagine; I just printed out the source to The Penguin 77's Tetris Marathon (64 pages) and Quigibo's Puyopuyo (49 pages) in an attempt to learn Asm.

You printed 113 pages of asm code!  :o That's dedication!

Readability is really important, er... at least it is for normal sized projects, obviously not for simple assignments.  Often you finish one part of the code then start working on another only to find later you have to change that original section of code, only now you forgot what you did!  Its necessary to leave clues about what everything does becasue even though you wrote everything, its very very easy to forget.  Especially in assembly you have to keep track of more than just what it does, you also have to know if things need to be called or jumped to, what registers are needed for input and output, which registers get destroyed and which ones are preserved, the state of the stack before and after, etc.

Axe right now is 6770 lines of code for instance, which is over 100 pages if printed.  One way I keep it organized is by overusing macros.  You should see some sections of code are entirely macros to make it more readable.  I'll attach a screen shot to show you what I mean.  You wouldn't even be able to tell that its asm:

___Axe_Parser___
Today the calculator, tomorrow the world!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: My schoolwork got rejected...
« Reply #31 on: May 19, 2010, 11:40:36 pm »
wow by version 1.0 it will be OVER 9000
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: My schoolwork got rejected...
« Reply #32 on: May 20, 2010, 09:00:06 am »
Macros are really being used there.

I think every z80 assembly programmer should print this z80 instruction set by calcmaniac84:
http://www.ticalc.org/archives/files/fileinfo/427/42722.html

I printed in two pages and is without doubt valuable.
Hobbing in calculator projects.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: My schoolwork got rejected...
« Reply #33 on: May 20, 2010, 05:07:25 pm »
Axe right now is 6770 lines of code for instance, which is over 100 pages if printed.  One way I keep it organized is by overusing macros.  You should see some sections of code are entirely macros to make it more readable.  I'll attach a screen shot to show you what I mean.  You wouldn't even be able to tell that its asm:
Wow, that's awesome!  It doesn't even look like asm. :D

Imagine a project of 6k lines of this and the migraine it would cause, even if its faster. Also, comments are always a good idea whenever clever code is employed.
I can imagine; I just printed out the source to The Penguin 77's Tetris Marathon (64 pages) and Quigibo's Puyopuyo (49 pages) in an attempt to learn Asm.
You printed 113 pages of asm code!  :o That's dedication!
Thanks. :D  I've also printed out Fishy by Iambian and Orbit by The Penguin 77.  Oh, and a little tutorial called Asm in 28 days. ;D  Asm in 28 has its own dedicated 3 inch binder. ;D

Offline Geekboy1011

  • The Oneironaut
  • Donator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: My schoolwork got rejected...
« Reply #34 on: May 21, 2010, 12:46:24 am »
nice ztrumpet

i think i printed out ti's official app making guide or somthing like that
with 4 pages per sheet of paper it was still like 200 pages long X.x