OpenCores
URL https://opencores.org/ocsvn/RISCMCU/RISCMCU/trunk

Subversion Repositories RISCMCU

[/] [RISCMCU/] [trunk/] [asm/] [readme.txt] - Diff between revs 18 and 27

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 18 Rev 27
Line 1... Line 1...
------------
-----
AVR Assember
FILES
------------
-----
 
 
 
readme.txt              This file
 
simple_calculator.asm   A simple calculator program which I use to test RISCMCU
 
memory_game.asm         A simple memory game which I use to test RISCMCU
 
riscmcu.inc             AVR Assembler include file for this RISCMCU
 
riscmcu.aio             AVR Studio I/O View setting file for RISCMCU
 
counter.asm             Simulation DEMO program for RISCMCU, which is
 
                          the program contains in program.mif in the vhdl directory
 
                          and the program the MCU run in the simulation waveform (simulation directory)
 
counter.lst             List file for counter.asm
 
 
 
 
 
 
 
-----------------
 
AVR Assember 1.30
 
-----------------
 
 
Click on 'Options...' Menu
Click on 'Options...' Menu
1. Select 'Generic Format' under the Output file format (MUST for HEX2MIF to work!)
1. Select 'Generic Format' under the Output file format (MUST for HEX2MIF to work!)
2. Check the 'Save before assemble' box.
2. Check the 'Save before assemble' box.
 
 
calc.asm        Simple Calculator Source Code
 
memgame.asm     Simple Memory Game Source Code
 
riscmcu.inc     Include File for *.ASM (I/O register and bit definition for this design)
riscmcu.inc     Include File for *.ASM (I/O register and bit definition for this design)
 
 
With an ASM file and the riscmcu.inc file, AVR Assembler generates
With an ASM file and the riscmcu.inc file, AVR Assembler generates
 
 
*.hex           Hex file : used by HEX2MIF
*.hex           Hex file : used by HEX2MIF
*.lst           Listing file
*.lst           Listing file
*.obj           Object file : used by AVR Studio for simulation
*.obj           Object file : used by AVR Studio for simulation
 
 
 
 
----------
--------------
AVR Studio
AVR Studio 3.0
----------
--------------
 
 
Open the OBJ file, set
Open the OBJ file, set
 
 
Prog.Memory             512
Prog.Memory             512
Data Memory             256*
Data Memory             256*
Line 35... Line 49...
You can go to Simulator Options (under Options menu) to set this anytime.
You can go to Simulator Options (under Options menu) to set this anytime.
 
 
Then press
Then press
ALT-0   Registers View
ALT-0   Registers View
ALT-4   New Memory View
ALT-4   New Memory View
ALT-5   New I/O View, choose riscmcu.aio**
ALT-5   New I/O View, choose riscmcu.aio
 
 
* The design only have 128 bytes of data RAM, but the simulator can not display the 128 locations when I put 128. 256 works, just ignored anything after the valid 128 byes.
* The design only have 128 bytes of data RAM, but the simulator can not display the 128 locations when I put 128. 256 works, just ignored anything after the valid 128 byes.
** External interrupt can not be simulated because the design mapped the external interrupt pin to D7 but the simulator map it to pin D2 (according to AT90S1200).
 
 
 
 
 
-------
 
HEX2MIF
 
-------
 
 
 
calc.mif        Simple Calculator MIF file
 
game.mif        Simple Memory Game MIF file
 
 
 
Both generated from the hex file by HEX2MIF to 'program.mif', then I rename it to reflect its application
 
 
 
 
 
 
 
 
 
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.