Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/09/04 03:29
Read: times


 
#68233 - RE: REG BANK 0
Responding to: ???'s previous message
My gosh this is such a simple problem to fix that I guess you cannot see where to walk because of your shadow!!!

You have these blasted ORG 0 directives in your code. What in the world do you expect. Any DS directives right after a ORG 0 will be placing the corresponding variables directly on top of the part of RAM that is used for the REGISTERS. Secondly a second ORG 0 will create any subsequent DS variables to be on top the registers AND on top the variables after the first ORG 0. Thirdly any ORG 0x20 with following DS directives will create data variables that interfere directly with bit variables that need to get allocated into the 0x20 to 0x2F range of RAM.

Think about this. If you absolutely need to be using a programming style that requires the use of ORG directives in the data area then YOU are responsible for correct management of the data allocations so as to prevent causing the creation of variables that end up at the same addresses. The over all simplest scheme for small programs that have plenty of spare RAM is to organize the DS directives at addresses from 0x30 and above.

Michael Karas


List of 20 messages in thread
TopicAuthorDate
WARNING DATA SPACE MEMORY OVERLAP            01/01/70 00:00      
   RE: WARNING DATA SPACE MEMORY OVERLAP            01/01/70 00:00      
      RE: WARNING DATA SPACE MEMORY OVERLAP            01/01/70 00:00      
         RE: WARNING DATA SPACE MEMORY OVERLAP            01/01/70 00:00      
            So the solution is ?            01/01/70 00:00      
               2000 lines            01/01/70 00:00      
   RE: WARNING DATA SPACE MEMORY OVERLAP            01/01/70 00:00      
   RE: WARNING DATA SPACE MEMORY OVERLAP            01/01/70 00:00      
   RE: WARNING DATA SPACE MEMORY OVERLAP            01/01/70 00:00      
      bible time            01/01/70 00:00      
         RE: bible time            01/01/70 00:00      
            RE: bible time            01/01/70 00:00      
               RE: thanks erik            01/01/70 00:00      
   REG BANK 0            01/01/70 00:00      
      RE: REG BANK 0            01/01/70 00:00      
         RE: REG BANK 0            01/01/70 00:00      
   program size reduced with "DSEG AT 32H"            01/01/70 00:00      
      Use the MAP file!!            01/01/70 00:00      
         RE: i couldn`t find this map file            01/01/70 00:00      
            Map File = Linker Listing File            01/01/70 00:00      

Back to Subject List