Keil Logo

AX51: ACCESSING EXTENDED CODE SPACE THE DS80C400


Information in this article applies to:

  • AX51 All Versions

QUESTION

Can I access the extended code space above 0x10000 on the Dallas 400 from inside an assembly module?

ANSWER

You can, if the device is in 16Mb contiguous mode. To set 16Mb mode, use the following instructions:

mov TA, #0AAh
mov TA, #055h
mov ACON, #02h

To locate a piece of code in the extended (ECODE) area, declare a segment, as follows:

myseg SEGMENT ECODE AT 0x10000
RSEG myseg
  (your code here)

...then simply ljmp to, or lcall, your code in extended code space.

ljmp 0x10000

SEE ALSO

AX51: LOCATING AN ECODE SEGMENT AT A FIXED ADDRESS

C51: EXAMPLE PROGRAMS FOR THE DALLAS 390 CONTIGUOUS MODE

Last Reviewed: Tuesday, June 1, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.