[General Design] Commenting Help

A General Discussion forum for TI calculators

Moderator: MaxCoderz Staff

coelurus
Calc Wizard
Posts: 585
Joined: Sun 19 Dec, 2004 9:02 pm
Location: Sweden
Contact:

Post by coelurus »

What's that, "baloney"? :wink:

EDIT: Aha, quite the opposite :D
Last edited by coelurus on Fri 01 Apr, 2005 5:06 pm, edited 1 time in total.
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

Google tells you instead of me. 8)
User avatar
kv83
Maxcoderz Staff
Posts: 2735
Joined: Wed 15 Dec, 2004 7:26 pm
Location: The Hague, Netherlands
Contact:

Post by kv83 »

Crimson Editor is defently the best to do... just look:
Image
(I like the 'one-button-compile' option 8) and the z80 syntax highlight... it just makes it more easier to read )

If you want to comment in a better way, try to comment in blocks

Code: Select all

lblShuffleLoop:	
	;--   Copy current card position to de   --
	push hl
	push de
	ld d,h
	ld e,l
	;------------------------------------------
This block for example copies the current card position to de (quite obvious out of my comment system). Comment source line by line isn't a good idea in ASM! Just comment for a whole block :)

Another thing which is important. Before writing the code, make the comment block. What is the next step which has to be done. After that you exactly know what that block has to do, and if you optimize, it still has to do the same task :)

Btw: This is more suitable in programming help. Therefor moved :)
Image
Gambit
Sir Posts-A-Lot
Posts: 252
Joined: Mon 21 Feb, 2005 5:34 am
Location: Laveen, Arizona

Post by Gambit »

You don't even need to specify what program to compile: Crimson Editor can do that for you :)

My options are "Compile Z80 Program" (for files in my Asm/(Tasm/Source/Programs) directory) and "Compile Z80 Program Dir" (for files not in my Asm dir (for projects)).

/edit: Here is my commenting style- put big comments for subroutines:

Code: Select all

Label:
;---------------------------------------(block enough to fill up a printed page)
; Inputs:
;   reg - description
;   (addr) - descripton
; Outputs:
;   same structure as inputs
; Destroys:
;   whatever (I also include what is destroyed in any subroutines it calls)
; Put comments here
;---------------------------------------
Sometimes, I don't put those "block" things, but it still makes sense.
"If SOURCE is outlawed, only outlaws will have SOURCE."
User avatar
DJ_O
Calc King
Posts: 2324
Joined: Mon 20 Dec, 2004 6:47 pm
Location: Quebec (Canada)
Contact:

Post by DJ_O »

I havent readed the whole thread but Maybe you could try Timendus commenter :)
Image Image Image Now active at https://discord.gg/cuZcfcF (CodeWalrus server)
User avatar
kv83
Maxcoderz Staff
Posts: 2735
Joined: Wed 15 Dec, 2004 7:26 pm
Location: The Hague, Netherlands
Contact:

Post by kv83 »

Kevin wrote:I havent readed the whole thread but Maybe you could try Timendus commenter :)
how about this?

http://calcwebzine.com/private/index.php (use the new routine option)

:)
Image
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Oh, yeah... kv, we needed to talk about that :)
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
Post Reply