10. how the local .asm variables (used in asm rouitne shall be
handled (e.g. where in ram to place the local variables).

----- PŮVODNÍ ZPRÁVA -----
Od: "pito" <[email protected]>
Komu: [email protected]
Předmět: HOW TO - Assembler in anmforth 
Datum: 7.9.2010 - 8:42:46

> Hi Matthias and co.,
> I'd like to ask how to start working with
> assembler in amforth. This
> might be of general interest, therefore HOW TO. 
> The example could be the timer int routine:
> : tick_isr  _one timer 2@ d+ timer 2! ;
> which does "timer = timer + 1" where timer is
> double integer. I've
> seen usart routines and Lubos' routines in asm,
> however generaly the
> Q:
> 
> 1. is there any recommended structure or frame for
> writing assembler
> words
> 1a. is there any recomemnded structure or frame
> for writing
> assembler interrupt handlers
> 2. how the data from data stack (or from return
> stack) are passed to
> assembler
> 3. how the data are passed from asm. back to data
> stack or return
> stack
> 4. how the external variables (defined as words)
> are accessed from
> assembler
> 5. how the data stack is duped or droped from
> assembler
> 6. what shall be poped and pushed in asm. routine
> (when entering and
> leaving it)
> 7. how the asm return stack is handled (imagine we
> need nested calls
> in asm)
> 8. how the ram, eprom can be accessed from asm
> 9. how the asm code shall be compiled (? via LP's
> asm or via
> avrasm.)
> 
> Thanks, Pito
> 



------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Amforth-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to