Whats the smallest Hello World program in Z80 ASM out there?
How is it optimized?


Link to hex Hello World program:

https://dl.dropbox.com/u/109591486/Capture.PNG
Do you have something against normal ASM source code? We don't generally deal with program already converted to hex, as the size of programs is immediately apparent from the human-readable source of normal ASM code.
I was wondering why an ASM program needs to have the compiled date. Could I put those hex numbers that have the date to 00?
The header isn't going to be stored on the calculator anywhere, so the size of the header is irrelevant when considering space taken on the calculator.
so how big is the Hello World program on the calc?

Program:


Code:
.NOLIST
#define   EQU   .equ
#define   equ   .equ
#define   END   .end
#define   end   .end
#include "ti83plus.inc"
.LIST

     .org 9D93h
      ld a,0
      ld (CURCOL),a
      ld (CURROW),a
      ld hl,text
      B_CALL(_PutS)
      ret
text:
      .db "Hello, World",0

.end
end


I also went and researched the "ti83plus.inc" file and found that PutS is really address $450A and I could do address $4540 to clear the LCD.
That should be 38 bytes on-calc.

Edit: Also, those addresses are used by the assembler in the BCALL macro, so you don't need to use those addresses directly in your source code (in fact, you should not for readability). It's not going to affect the size of your program.
souvik1997:

what do you mean about taking out the BCALL's?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement