Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 134 users online: 6 members, 94 guests and 34 bots. Members: ACagliano, flyingfisch, HOMER-16, JosJuice, legodude. Bots: VoilaBot (2), Spinn3r (2), MSN/Bing (1), Magpie Crawler (4), VoilaBot (5), Googlebot (19), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55760 Location: Earth, Sol, Milky Way
|
Posted: 30 Aug 2010 09:20:35 pm Post subject: |
|
|
| Raylin wrote: | | Yeah. It's going through the stack. Cool. Cool. | Indeed; the only thing to note of course is that GUIFindFirst starts at the first element above the topmost GUI groupmaster, and that hl and de need to be preserved between successive GUIFindFirst and/or GUIFindNext calls. As of Doors CS 7, there's a new GUIFindThis. _________________
 |
|
| Back to top |
|
|
Raylin

Expert

Joined: 05 May 2008 Posts: 567 Location: Illinois Institute of Technology
|
Posted: 30 Aug 2010 09:38:29 pm Post subject: |
|
|
So, to save to my save pointer...
Code: ld (myText),hl
ld (myText+15),(de-1)
? |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55760 Location: Earth, Sol, Milky Way
|
Posted: 30 Aug 2010 09:47:37 pm Post subject: |
|
|
| Raylin wrote: | So, to save to my save pointer...
Code:
ld (myText),hl
? | Well, no, because the memory that hl is pointing to will get reused eventually. You'll need to first increment hl a bit to get through the GUIRTextInput structure to the actual string part (ie, go past the x, y, maxlength, etc), then use the ldir opcode, which copies from hl to de for bc bytes. For example, say myTextSave is .db 0,0,0,0,0,0,0,0,0,0,0 [10 plus a null terminator], then after all your GUIFindFirst/This/Next'ing:
Code: ld de,[some amount to go forwards to get to the text part, which I'll let you figure out]
add hl,de
ld de,MyTextSave
ld bc,10 ;don't copy 11 so you don't overwrite the null term
ldir
_________________
 |
|
| Back to top |
|
|
Raylin

Expert

Joined: 05 May 2008 Posts: 567 Location: Illinois Institute of Technology
|
Posted: 30 Aug 2010 10:03:48 pm Post subject: |
|
|
Suddenly, ASM is starting to kick me in the face... >c _________________
The Labyrinthine Chronicles
Prophecy: 0% (planning)
The Journalist: 0%
Image of Imperfection: 0%
Phantom Sanctuary: 0%
Godslayer: 0% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55760 Location: Earth, Sol, Milky Way
|
Posted: 30 Aug 2010 10:16:06 pm Post subject: |
|
|
| Raylin wrote: | | Suddenly, ASM is starting to kick me in the face... >c | That's what happens when you leave the safe cocoon of the Doors CS libraries. Did what I said make sense, though? _________________
 |
|
| Back to top |
|
|
Raylin

Expert

Joined: 05 May 2008 Posts: 567 Location: Illinois Institute of Technology
|
Posted: 30 Aug 2010 10:17:34 pm Post subject: |
|
|
Yeah. A bit.
I think I need to learn the instruction set for the z80 processor. _________________
The Labyrinthine Chronicles
Prophecy: 0% (planning)
The Journalist: 0%
Image of Imperfection: 0%
Phantom Sanctuary: 0%
Godslayer: 0% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55760 Location: Earth, Sol, Milky Way
|
Posted: 30 Aug 2010 10:24:34 pm Post subject: |
|
|
| Raylin wrote: | Yeah. A bit.
I think I need to learn the instruction set for the z80 processor. | Aye, it wouldn't hurt to give it a quick read-through.  _________________
 |
|
| Back to top |
|
|
Raylin

Expert

Joined: 05 May 2008 Posts: 567 Location: Illinois Institute of Technology
|
Posted: 31 Aug 2010 07:00:41 pm Post subject: |
|
|
*BUMP* Go time. _________________
The Labyrinthine Chronicles
Prophecy: 0% (planning)
The Journalist: 0%
Image of Imperfection: 0%
Phantom Sanctuary: 0%
Godslayer: 0% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55760 Location: Earth, Sol, Milky Way
|
Posted: 31 Aug 2010 07:10:20 pm Post subject: |
|
|
| Raylin wrote: | | *BUMP* Go time. | Huzzah! Do you have any contents / gameplay / whatever worked out yet, or are you still feeling your way through the GUI API and z80 ASM in general? _________________
 |
|
| Back to top |
|
|
Raylin

Expert

Joined: 05 May 2008 Posts: 567 Location: Illinois Institute of Technology
|
Posted: 31 Aug 2010 08:43:59 pm Post subject: |
|
|
Sorry, I was at a stupid relay race with my RA and the rest of my floor of which I had no chance of winning because the other gorramn teams frakking started before mine. Frakkin' waste of my time. I now have to make up for the two crucial hours I missed. >:c _________________
The Labyrinthine Chronicles
Prophecy: 0% (planning)
The Journalist: 0%
Image of Imperfection: 0%
Phantom Sanctuary: 0%
Godslayer: 0% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55760 Location: Earth, Sol, Milky Way
|
Posted: 31 Aug 2010 08:48:33 pm Post subject: |
|
|
| Raylin wrote: | | Sorry, I was at a stupid relay race with my RA and the rest of my floor of which I had no chance of winning because the other gorramn teams frakking started before mine. Frakkin' waste of my time. I now have to make up for the two crucial hours I missed. >:c | Aww, sorry to hear it, but socializing is always fun, right? You missed all the drama in the main topic of the evening if you were away for the last two hours. At any rate, gogogogogo ASM! _________________
 |
|
| Back to top |
|
|
Raylin

Expert

Joined: 05 May 2008 Posts: 567 Location: Illinois Institute of Technology
|
Posted: 31 Aug 2010 08:50:34 pm Post subject: |
|
|
Drama? Speak now. _________________
The Labyrinthine Chronicles
Prophecy: 0% (planning)
The Journalist: 0%
Image of Imperfection: 0%
Phantom Sanctuary: 0%
Godslayer: 0% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55760 Location: Earth, Sol, Milky Way
|
Posted: 31 Aug 2010 09:07:24 pm Post subject: |
|
|
| Raylin wrote: | | Drama? Speak now. | Check out the Introduce Yourself thread. Actually, you should go introduce yourself at the same time, if you haven't already.  _________________
 |
|
| Back to top |
|
|
Raylin

Expert

Joined: 05 May 2008 Posts: 567 Location: Illinois Institute of Technology
|
Posted: 31 Aug 2010 10:08:26 pm Post subject: |
|
|
This just became a BASIC game. _________________
The Labyrinthine Chronicles
Prophecy: 0% (planning)
The Journalist: 0%
Image of Imperfection: 0%
Phantom Sanctuary: 0%
Godslayer: 0% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55760 Location: Earth, Sol, Milky Way
|
Posted: 31 Aug 2010 10:26:42 pm Post subject: |
|
|
| Raylin wrote: | | This just became a BASIC game. | Aww, you gave up on Assembly for now? If so, I'm sorry to hear it.  _________________
 |
|
| Back to top |
|
|
Raylin

Expert

Joined: 05 May 2008 Posts: 567 Location: Illinois Institute of Technology
|
Posted: 31 Aug 2010 10:31:37 pm Post subject: |
|
|
I didn't give up on ASM. I just can't pull out a win in ASM now that Sir is in ASM. I'm going BASIC again.
EDIT: I mean, geez. I can't learn ASM AND pull out a win. _________________
The Labyrinthine Chronicles
Prophecy: 0% (planning)
The Journalist: 0%
Image of Imperfection: 0%
Phantom Sanctuary: 0%
Godslayer: 0% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55760 Location: Earth, Sol, Milky Way
|
Posted: 31 Aug 2010 10:52:41 pm Post subject: |
|
|
| Raylin wrote: | I didn't give up on ASM. I just can't pull out a win in ASM now that Sir is in ASM. I'm going BASIC again.
EDIT: I mean, geez. I can't learn ASM AND pull out a win. | Well, he's not necessarily in the ASM contest, I think (?), and you would still either get first, second, or third place, no? Your call, of course. _________________
 |
|
| Back to top |
|
|
Raylin

Expert

Joined: 05 May 2008 Posts: 567 Location: Illinois Institute of Technology
|
Posted: 31 Aug 2010 11:09:35 pm Post subject: |
|
|
Can I join both? _________________
The Labyrinthine Chronicles
Prophecy: 0% (planning)
The Journalist: 0%
Image of Imperfection: 0%
Phantom Sanctuary: 0%
Godslayer: 0% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55760 Location: Earth, Sol, Milky Way
|
Posted: 31 Aug 2010 11:12:24 pm Post subject: |
|
|
| Raylin wrote: | | Can I join both? | Sure, I don't think that's against the rules. I believe if you enter both though, we made it that only one of your entries is allowed to place, whichever one would have placed higher in its category. _________________
 |
|
| Back to top |
|
|
Raylin

Expert

Joined: 05 May 2008 Posts: 567 Location: Illinois Institute of Technology
|
Posted: 03 Sep 2010 11:24:49 pm Post subject: |
|
|
Solved. _________________
The Labyrinthine Chronicles
Prophecy: 0% (planning)
The Journalist: 0%
Image of Imperfection: 0%
Phantom Sanctuary: 0%
Godslayer: 0% |
|
| Back to top |
|
|
|
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
|
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
|
© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.044525 seconds.
|