This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's z80 & ez80 Assembly subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Z80 & 68k Assembly => z80 & ez80 Assembly
Author Message
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 15 Dec 2003 10:41:01 am    Post subject:

Hi. Can someone please assemble this program:


Code:
   b_call(_ClrLCDFull)
   b_call(_HomeUp)
   LD   HL,text
   CALL   CustomStr
   RET

text:   .DB   "Hello ",1,0

CustomStr:
   LD   A,(HL)
   OR   A
   RET   Z

   CP   1
   JR   NZ,NormalChar; Trap for char $01 (custom)

   PUSH   AF

   XOR   A   ; Configure word size
   OUT   ($10),A

   LD   A,$05   ; Configure X auto-increment
   OUT   ($10),A

   LD   A,(CurCol); Set LCD Row
   ADD   A,$20
   OUT   ($10),A

   LD   A,(CurRow); Set LCD Row
   ADD   A,A
   ADD   A,A
   ADD   A,A
   ADD   A,$80
   OUT   ($10),A

   LD   DE,Smilie
   LD   B,8
FontLoop:
   LD   A,(DE)
   CALL   $000B
   OUT   ($11),A
   INC   DE
   DJNZ   FontLoop

   LD   A,(CurCol); Advance cursor position
   INC   A
   AND   %00001111
   LD   (CurCol),A
   JR   NZ,DoneCustomFont

   LD   A,(CurRow); Advance row. This doesn't check for a bad
   INC   A   ; position or scroll. Do that on your own time.
   LD   (CurRow),A

DoneCustomFont:
   POP   AF
   JR   DoneChar

NormalChar:
   b_call(_PutC)

DoneChar:
   INC   HL
   JR   CustomStr

; Our custom character!
smilie:
   .DB   %0111110
   .DB   %1111111
   .DB   %1001001
   .DB   %1111111
   .DB   %1011101
   .DB   %1100011
   .DB   %0111110
   .DB   %0000000


It is from Learn TI-83 Plus Assembly In 28 Days — Day 25 — LCD Driver.
I want to compare it to the hex I wrote.
Back to top
sgm


Calc Guru


Joined: 04 Sep 2003
Posts: 1265

Posted: 15 Dec 2003 02:54:53 pm    Post subject:

Why can't you assemble it yourself?
Back to top
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 15 Dec 2003 05:15:08 pm    Post subject:

My shared space is kind of full, and I don't want to install tasm and mess around with the C: drive for a single small program
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 15 Dec 2003 06:44:47 pm    Post subject:

could you please add the necessary leading spaces...
Back to top
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 16 Dec 2003 02:52:53 pm    Post subject:

Yes, this forum collapses spaces.

http://www.geocities.com/tisourcecodes/program.html
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 16 Dec 2003 05:35:48 pm    Post subject:

it shouldnt in a code tag (only the first leading one, dunno why that one dies...)

ok, thanks for the link, now someone can actually compile it w/out the extra work of adding spaces Razz
Back to top
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 17 Dec 2003 05:25:46 pm    Post subject:

In case you didn't know, you can use
http://cirrus.tigalaxy.com/hexer.php
to see the hex bytes. Also, I think you should put a disassembler or link to the disassembler on the UnitedTI site.
Back to top
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 18 Dec 2003 05:28:21 pm    Post subject:

Does it take long to assemble a program, or is there something I should add? Sorry for being so pushy, but tomorrow is the last day of school before Christmas break.
Back to top
Job the GameQuitter


Member


Joined: 04 Jun 2003
Posts: 102

Posted: 18 Dec 2003 06:53:56 pm    Post subject:

Well, no, it doesn't, but I'm currently not at speaking terms with my assembler; it refuses to properly assemble even the simplest of programs Mad .
Back to top
Darth Android
DragonOS Dev Team


Bandwidth Hog


Joined: 31 May 2003
Posts: 2104

Posted: 18 Dec 2003 07:06:16 pm    Post subject:

what do you use?
Back to top
Job the GameQuitter


Member


Joined: 04 Jun 2003
Posts: 102

Posted: 18 Dec 2003 08:41:45 pm    Post subject:

I probably only accidently mixed up asm.bat from one guide with a devpacwhatever from another with an outdated version of TASM. :roll:

It should be fixed soon.
Back to top
sgm


Calc Guru


Joined: 04 Sep 2003
Posts: 1265

Posted: 19 Dec 2003 02:04:41 pm    Post subject:

anduril66 wrote:
Sorry for being so pushy, but tomorrow is the last day of school before Christmas break.

So just go to the nearest public library and use their computers.
Back to top
sgm


Calc Guru


Joined: 04 Sep 2003
Posts: 1265

Posted: 19 Dec 2003 02:29:41 pm    Post subject:

Okay, now keep in mind I hand-assembled this:


Code:
EF 40 45
EF 58 45
21 A0 9D
CD A8 9D
C9

48 65 6C 6C 6F 20 01 00

7E
B7
C8

FE 01
20 49

F5

AF
D3 10

3A 4C 84
87
87
87
C6 80
D3 10

11 E6 9D
06 08

1A
CD 00 0B
D3 11
13
10 F7

3A 4C 84
3C
E6 0F
32 4C 84
20 06

3A 4B 84
3C
32 4B 84

F1
18 03

EF 04 45

23
18 C2

3E 7F 49 7F 5D 63 3E 00
Back to top
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 19 Dec 2003 04:45:26 pm    Post subject:

Thanks. I tried hand assembling that program, but it didn't work.
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 20 Dec 2003 02:04:33 pm    Post subject:

Then assemble it.

You can run the assembler right off of a floppy disk if you wish.
Back to top
Display posts from previous:   
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
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement