Re: A89: Re: Re: Re: ASM without libraries


[Prev][Next][Index][Thread]

Re: A89: Re: Re: Re: ASM without libraries




handle romcalls is no problem!
I have a6 always point to the jumptable and calls them with lines like this:

		move.l	HeapAlloc(a6),a0
		jsr	(a0)			; Allocates 1600 bytes of RAM

saves cycles and space.
programming own functions is just fun :)
but ok.. for grayscale I just snatched some code from gray4lib, it is quite
optimized.
the int1 code atleast.
(ofcourse I dont call the int1 routine after though)
I always never use the standard screen (move it so i dont have to care about
clipping and such) so the graphic library functions are no good anyway :)
for higperformanse asm/game/demo you dont use almost anything of tiOS anyway
(exept for allocating memory and stuff) so it doesnt really matter how it is
coded.


//Olle


Niklas Brunlid wrote:
> 
> > do you really mean without just libraries (that is no problem, just dont use
> > them)
> > or do you mean without a shell? thats more tricky, I don't think there is any
> > publically available linkers for that out now. (I have one, but I didn't make
> > it, and I think I agreed not to spread it. because I already have one, I dont
> > care to make one myself..  If I did, I would release it)
> 
> Actually, DoorsOS's linker supports the _nostub xdef. I've written a program for
> Dim-TI:s latest challenge that doesn't use shells or libraries with it, but it's
> a real pain to manually handle ROM calls and replace the library functions (most
> are in the ROM, but TI didn't exactly design them for asm/game/demo
> programming...).
> 
>  / Niklas Brunlid
> Check out Prosit for the TI-89 / TI-92 Plus at http://c625.sparta.lu.se
> Random PQF Quote follows:
> 
> A Thaum is the basic unit of magical strength. It has been universally
> established as the amount of magic needed to create one small white pigeon
> or three normal sized billiard balls.
>         -- (Terry Pratchett, The Light Fantastic)


Follow-Ups: References: