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 - mapar007

Pages: 1 ... 9 10 [11] 12 13 ... 38
151
Portal X / Re: Portal X
« on: June 29, 2010, 03:29:24 pm »
Yeah for Nostub the limit I think is 8100 bytes about including data.  Silly TI x.x

Actually that's not entirely correct. You can have approx. 8100 bytes of executed code, but your data can extend beyond that limit. As long as you don't execute across the 8100 line ($C000), you're fine, so reorganizing data sometimes pays off. (i.e. putting it all at the end of the program binary)

EDIT for the nitpickers: This holds in the standard memory mapping. If you swap in an uneven-numbered RAM page in the $C000 bank, you'll be safe to execute code, but that's not really the best way to deal with the problem :) (cue OS freakout on every interrupt => CRASSHHHH)

Offtopic edit: this semi-useful post is my #400. I'm still the staff member with the lowest postcount, though.

152
Urrrhm... Yes :) But also, I think it has some additional features (I don't remember where I read that). Still, it IS fun.

153
ASM / Re: Text and sprites in an APP? Why is my scrip failing?
« on: June 29, 2010, 03:22:55 pm »
You can't use bcalls for text/sprites in an app. You have to write your own routines, or store all text in RAM.

This is because, if you call cross-page, the pointer is messed up: it points to the same address, but on a different page. So basically, you can't access data in your app during a bcall. (or an external page call, in general)

EDIT: if you want all the technical details about why this is, you can read up on wikiti.brandonw.net

154
I recently played through the Minish cap, but it definitely wasn't a 100% run.

I'd recommend the Link's Awakening DX. It rulez, even if you have already played it before.

155
Other / Re: Are desktop computers being phased out?
« on: June 29, 2010, 03:15:20 pm »
I have 256 MB RAM and only 991.0 MHz clockspeed. I win. :P j/k


("Margin"-edit: I have to say I run a very outdated linux, so speed is not a concern. I haven't updated anything in some time. The computer is almost 10y old and not connected to the internet, so nothing fancy, but it also means I hardly need/want any bloatware like antivirus :P )

156
I tried this with spasm a while ago iirc, and it didn't make any difference.

157
Sigma (or sgm) is Sean McLaughlin's nickname on UTI. He is the author of the 83pa28d tutorial I was referencing.

158
Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: June 29, 2010, 08:51:06 am »
I actually often say: 'my calculator is more powerful than my cell phone, except that it hasn't got calling & sms'ing'
(my brother calls my cell phone a 'brick')

159
ASM / Re: Calc System Restore- Is it Possible?
« on: June 29, 2010, 07:10:21 am »
Certificate is 16KB, like an app.

160
Where you place the statement has no influence for its value, but it does for the values that follow it. It actually just resets the program counter to the given value in most assemblers.

In one of the first lessons of Assembly in 28 days this concept is explained. I am sure I can't do any better than sigma.

161
TI-Nspire / Re: Virus to crack RSA for nspire? :P
« on: June 29, 2010, 05:55:17 am »
It's worth a try, but it hasn't been done to my knowledge.

162
ASM / Re: Calc System Restore- Is it Possible?
« on: June 29, 2010, 04:48:31 am »
I gave my two cents on cemetech ;) System restore points will really be hard/not efficient in calcs...

163
* mapar007 absolutely wants one race that is completely balanced :P


Cool idea, but won't it be a PITA to implement? I can imagine that it requires a lot of really versatile code at the higher levels of your application... But of course I haven't read any of your source lately.

164
No. :) Both copy to $9d95. We write .org $9d93 because of the .db $BB,$6D bytes, which should not be counted in. These are equivalent:
Code: [Select]
.org $9d93
.db $bb,$6d
blablabla
Code: [Select]
.db $bb,$6d
.org $9d95
blablabla

And I don't quite get what you mean by shifting labels. If you mean inserting one byte so that all labels are shifted one position 'upwards', then yes.

165
No, no. The program is copied, but the labels need the correct values, or otherwise the program goes havoc.

Say I call label1 in 2 different situations:

Code: [Select]
.org 0 ;just for clarity
blablablabla
call label1
blablabla
label1: ;say this is the 250th byte of the program
blabla
ret


The code would resolve to call 250.

Situation 2:
Code: [Select]
.org $9d95
bla
blablablabla
call label1
blablabla
label1: ;say this is the 250th byte of the program
blabla
ret
The call instruction would now become call 250+$9d95 (too lazy to convert the hex :D), but it would still be at the same position relative to the beginning of the program.

Is this clear enough? It's really much simpler in concept than it is in words...


EDIT: seeing player's post: I'll summarize: The label resolution is always relative to the program origin. The absolute position therefore is the position relative to the origin+the value of the origin. (that's where .org stands for, btw)

Pages: 1 ... 9 10 [11] 12 13 ... 38