Chapter 6. MEMORY

In chapter 4, section 4.2 we noted that the MOV command can be used to transfer data to and from memory just as IN and OUT can be used to transfer data to and from I/O devices. For the programmer, using MOV to access memory is simple: just enclose an address in brackets. In neither DOS nor Linux, however, are the addresses enclosed by brackets actual memory addresses. In DOS an address processing mechanism called segmentation is used, and in Linux another one called paging is used. But these mechanisms can be circumvented. In this chapter we make the simplifying assumption that this is done so that addresses enclosed in brackets are actual hardware addresses. Programs written on this basis run under Edlinas. Segmentation and ...

Get Linux Assembly Language Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.