Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
vk4tec Senior Member Joined: 24/03/2012 Location: AustraliaPosts: 239
Posted: 11:23pm 28 May 2013
Copy link to clipboard
Print this post
Hello
A lot of my programming uses the include statement which defines Register Names and locations.
I am assuming it is ok to drop this include statement and define them again by hand at the beggining of the assembly.
For the purpose of training to get to know the relationship between Register name and location.
As long as you make sure you don't miss any you refer to in your program.
- Andrew -Andrew Rich VK4TEC
www.tech-software.net
MOBI Guru Joined: 02/12/2012 Location: AustraliaPosts: 819
Posted: 11:53pm 28 May 2013
Copy link to clipboard
Print this post
That's right. You can omit the include (definitions) file but you will be stuck with either just using register numbers or defining your own. Frankly, I'd continue to use the include files unless your programmes are pretty small.
When I first started assembly with my own software, I did everything with my own in-programme definitions. It made the programme so much shorter and easier to read after I built in the Include function.
David M.