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 ... 186 187 [188] 189 190 ... 317
2806
Site Feedback and Questions / Re: Is this Normal for Omnimaga Stats?
« on: November 20, 2011, 06:43:11 pm »
I believe today's stats aren't added to the weekly stats until after today is over.

2807
TI Z80 / Re: zStart - an app that runs on ram clears
« on: November 20, 2011, 06:23:38 pm »
And it could launch apps too ? O.o That would be awesome :D
Hmm, that seems useful and doable O.O Would it just require finding the app page and jumping to 4080h?

2808
TI Z80 / Re: Grammer Tetris
« on: November 20, 2011, 01:08:58 pm »
I only could optimise a little bit, so far, so good coding! And I also noticed that this is about as fast and as smooth as a Gameboy game I played one O.O

2809
Miscellaneous / Re: How often would you seek programming help?
« on: November 19, 2011, 11:14:25 pm »
I usually try to struggle through code myself, but every once in a while I need help. And I like cookies...

2810
Miscellaneous / Re: Why did you learn how to program?
« on: November 19, 2011, 11:12:23 pm »
I started to learn because I was just intrigued. I had no intention of getting as far as I have, I just wanted a fast way to make and compute algorithms. I think the first thing I wanted to do was make a prime tester, but I cannot remember. I still use my calc often to compute algorithms, but I obviously do more than that, now ♥

2811
TI-BASIC / Re: TI-BASIC Q&A
« on: November 19, 2011, 10:04:10 pm »
I did that! In one of my first RPG's I stored EVERYTHING to a picture for save data. I even let the user make custom sprites for their character (they could only view it in the stats menu). I felt so clever when I realised I could use the pixels as powers of 2, then I learned that was called binary XD

EDIT: @epic7: That probably didn't cause a crash then XD

2812
TI-BASIC / Re: TI-BASIC Q&A
« on: November 19, 2011, 10:01:26 pm »
In any event, it is very likely not the fault of the OS or the program XD That is the best part about BASIC-- you usually have to know some really advanced stuff to make it cause a glitch or a crash :)

2813
TI-BASIC / Re: TI-BASIC Q&A
« on: November 19, 2011, 09:56:16 pm »
If that was all you had, that was probably what corrupted it :/

2814
TI-BASIC / Re: TI-BASIC Q&A
« on: November 19, 2011, 09:53:19 pm »
What assembly programs or apps did you run?

2815
TI-BASIC / Re: TI-BASIC Q&A
« on: November 19, 2011, 09:44:39 pm »
Now I want to see what I can do O.O I remember I used to store strings to pictures by storing 19 letters to a row (I used 5 pixels to determine which of 32 chars to use and vice versa). So I would get 1197 characters out of 767 bytes instead of 1208 bytes :)

2816
TI-BASIC / Re: TI-BASIC Q&A
« on: November 19, 2011, 09:13:11 pm »
DJ_O used to make some pretty amazing/fast BASIC programs that could rival Axe >:D Although generally it is slower :/ People love the challenge of BASIC >:D

2817
TI-BASIC / Re: TI-BASIC Q&A
« on: November 19, 2011, 09:10:11 pm »
Hehe, there are lots of cool things you can do in BASIC that you might never even think of O.O I just can't think of any at the moment...

2818
TI-BASIC / Re: TI-BASIC Q&A
« on: November 19, 2011, 09:03:36 pm »
Have you ever used Repeat loops? They are very lovely for these kinds of loops. Repeat will kepp repeating the loop until the condition is true. It does not test the condition before entering the loop (a while loop does). For example, this code will move a pixel around on the screen in a 16x16 area:
Code: [Select]
3→X
3→Y
Repeat A=45     ;Later I will store the key value to A. This means repeat until clear is pressed.
pxl-Test(Y,X→C
9→B
Repeat A          ;getKey will be stored to A, so this repeats until a key is pressed
B+1
If Ans>9
Then
Pxl-Change(Y,X
0
End
Ans→B
getkey→A
End
If A=105     ;Enter
1→C
If A=23       ;Delete
0→C
If A=21       ;2nd
not(C→C
Pxl-Off(Y,X
If C
Pxl-On(Y,X
Y+(A=34)-(A=25
If Ans<0
15
If Ans>15
0
Ans→Y
X+(A=26)-(A=24
If Ans<0
15
If Ans>15
0
Ans→X
End
I may have mistyped something, but that should give you an idea of how to make things work :)
You can press clear to exit, 2nd to invert the pixel, Enter to turn the pixel on, and Del to turn the pixel off.

EDIT: I love Repeat loops :) I actually learned them long before I understood While loops. It think this is more useful...

2819
TI-BASIC / Re: TI-BASIC Q&A
« on: November 19, 2011, 08:37:46 pm »
Also, if you only have one line following the If statement, you don't need an End or a Then :)
For example:
Code: [Select]
If A=1
3→D

2820
ASM / bcall(_DelMem), pointers
« on: November 19, 2011, 07:12:13 pm »
I was using DelMem inside a parser hook and directly after that, I tried finding the updated position of a program. For some reason, bcall(_CheckFindSym) returned the old pointer (even though I watched the program data get shifted down in Wabbit's debugger).

So does anybody have any insight as to why this is and how it can be fixed?

EDIT: The code:
Code: [Select]
     bcall(_DelMem)
     ld hl,9652h          ;This is the pointer to the name of a currently executing program
     rst 20h               ;Copies 9 bytes at HL to OP1
     bcall(_CheckFindSym)   ;
     inc de \ inc de
     ld hl,(965Bh)       ;start of the currently executing program
     ld (965Bh),de
     ex de,hl
     sbc hl,de
     ld de,(progPtr)     ;a pointer inside the program
     add hl,de
     ld (progPtr),hl
     ret

EDIT2: Problem fixed :)

Pages: 1 ... 186 187 [188] 189 190 ... 317