Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Xeda112358

Pages: 1 ... 309 310 [311] 312 313 ... 317
4651
ASM / Re: Something is wrong...
« on: November 14, 2010, 03:35:55 pm »
Okay, thanks! I think that I will post any other problems I run into, here.

4652
ASM / Re: Something is wrong...
« on: November 14, 2010, 11:36:49 am »
Well, the problem isn't there anymore, but I am still curious about what happened and I did actually want curCol and CurRow, but the penCol and penRow might be fun to play with. Any who, here is what ConvRStr does:
Code: [Select]
This is used in my BASIC ReCode project to convert real number strings into hex
Inputs:
     HL is the pointer to the real string (or the byte before)
Output:
     (86ECh) has the converted value --This will likely change, but for now it is this
     BC contains the converted value
     HL points to the byte after the string
So when I was making the "Disp " command, I would do something like Disp 1,2,HELLO and it would need to convert that 1 and put it in curCol, convert the 2 and store it it curRow, and then display HELLO. Again, it works now and before, the values were converted correctly, but before I actually added the displaying portion, it wasn't setting the cursor where I wanted it.

I am pretty sure it was because after the ReCode section (so in the BASIC part of the program), I used "Pause Ans" to check where the cursor was.

4653
TI Z80 / Re: [Project] BASIC ReCode
« on: November 14, 2010, 01:27:36 am »
Oh, yeah, sorry about that. I was just using variables, not coordinate logic. Should I just change the order to Disp Y,X or do you want the code changed (it is only 2 bytes to change)?

4654
TI Z80 / Re: [Project] BASIC ReCode
« on: November 13, 2010, 09:36:57 pm »
Okay, my latest update now has the Line( command which is used to draw rectangles. I actually made the example program prgmB do something this time and I have the compressed version of the program called prgmRECODE.

At the moment, you can comment on your code without a problem unless you use commands. The problem is, every byte gets read by the interpreter and this can slow down your code. I was thinking about using "." to start a comment and have it skip to the next line to save speed, but if anybody has a better idea for starting a comment, I can easily change it.

Also, the example program has a pause just about every other line, so it isn't slow, it's just taking a pause so you can actually read the words :D

Finally, this is as far as my original version got. Now I get to be a little more inventive. I am going to take it slow and easy, but if there are any ideas, I would be happy to read them. I do not plan to do anything major like a tile-mapping routine yet, but simpler things are okay.

4655
ASM / Re: Quicksort in z80 (note: not by me)
« on: November 13, 2010, 08:00:31 pm »
Oooooooh. I get it now. That makes more sense. I didn't ever think of that... I had only glanced at it before, but now it makes more sense. I like that code...

4656
TI Z80 / Re: [Project] BASIC ReCode
« on: November 13, 2010, 04:49:32 pm »
Well I am going to eliminate OS routines later. For now, I am just making it so that I have an outline, but that might be cool...

4657
TI Z80 / Re: [Project] BASIC ReCode
« on: November 13, 2010, 01:10:14 pm »
Okay, I have a new update... I have finally added the Disp command to the list. Apparently I didn't have a bug, but I guess it is always safer to be, well, safe. Also, I forgot to mention that I have not compressed the program. I will start doing that after the next command, though.

The next command I plan to use Line(a,b,x,y,t where it makes rectangles. For now I am going to use the OS routines, but I think I will make my own routines at another date.

4658
ASM / Something is wrong...
« on: November 13, 2010, 12:11:04 pm »
In my latest program I am having a problem with this code:
Code: [Select]
Call ConvRStr        ;Converts a decimal string into hex and stores it to BC
ld a,c
ld (curRow),a
Call ConvRStr
ld a,c
ld (curCol),a
ret
ConvRStr converts a string of decimal digits into hex in BC. So "123" would make BC=7Bh. ConvRStr works properly, but the code isn't setting the cursor position correctly. Any ideas why?


EDIT: Okay, never mind. I have no idea why, but I decided to add the code to actually display text and it worked. I am still confused about why it didn't work before, but it works now. My problem is fixed now.

4659
ASM / Re: Quicksort in z80 (note: not by me)
« on: November 13, 2010, 11:14:03 am »
My only concern at a glance is how it keeps popping without pushing.

4660
Correlation / Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« on: November 13, 2010, 03:24:36 am »
Oh, well there is a neat twist!. So you are going to be making the routine for how Output( and the like act? That is really nice and that will make the routine fast as well.

4661
Correlation / Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« on: November 13, 2010, 03:20:35 am »
Yeah, your program is looking very cool. This will be very useful, I can see that. So is this going to use a parse hook and font hook?

4662
TI Z80 / Re: [Project] BASIC ReCode
« on: November 13, 2010, 02:52:18 am »
yeah, my only goal in the spread sheet was to make it take all of my code and put it all together. It was designed for my uses, but anybody is welcome to use it.
Column A is the name
Column B is the size of the code in bytes
Column C is 1 if it is to be included in the final code, 0 if not
Column D converts Column B to hex
Column E is the start address of the code
Column F is the hex code
Column G is whatever F is if C is 1
Column H is all of the code in column G
Column I is the address as it is used in hex (1234→3412)
Column J is the length of the hex code (uses !!! if it doesn't match B)
Column K is the cumulative size of the code to be used


4663
TI Z80 / Re: [Project] BASIC ReCode
« on: November 13, 2010, 02:37:38 am »
Speaking of updates... I put together a spread sheet (It uses OpenOffice) that has been a real help with my programming. It pretty much eliminates the need to calculate addresses. For that reason, I have optimized the code a bit, but there really are still only two things it can do at the moment.

4664
TI Z80 / Re: [Project] BASIC ReCode
« on: November 12, 2010, 04:45:11 pm »
well, I learned BASIC first, so if you need any help I can try to give the BASIC or English behind assembly :D I started playing with Celtic 3 and modifying data before I really figured it all out.

4665
ASM / Re: The copying of ASM programs
« on: November 12, 2010, 03:18:33 pm »
And that is why I love my 89 <3

Pages: 1 ... 309 310 [311] 312 313 ... 317