extracted from ZeroPage
돌다며 다.
8bit CPU 6502를 로 들겠다.
6502 는 16bit addressing 가능 CPU 다. , $0000 ~ $FFFF .
6502 는 13가 메모리 access 방 는데, 그 나가 zero page addressing 다.
8bit 만 , 8bit 00 로 가고 addressing 면
$0000~$00FF 가 됩다. 렇게 더 빠른 access 가 가능다고 다.
메모리 zero page 라고 는군.
다 문다.
The zero page instructions allow for shorter code and excution times by only feching the
second byte of the instruction and assumming a zero high address byte.
Careful use of the zero page can result in significant increase in code efficient.
(로 명령들 명령 바를 0로 가고 단 두 바만 가로, 드 가다다. 깊게 로 명령 는 것 드 개 가능 다.)
발 : http://www.6502.org/datasheets/csg6500.pdf
X
ZeroPage 그래 기법라는 것과 관 는 닐까. 『, 그 광기 밀 기록』 나더군.--Leonardong
과)
Zero_page
{{|
The zero page is the memory address page at the absolute beginning of a computer's address space (the lowermost page, covered by the memory address range 0 ... page size1).
로는 메로리 공 가 는 메모리 다. (가 래 는 로 메리 0부 -1만 범를 갖는다)
In early computers, including the PDP-8, the zero page had a special fast addressing mode, which facilitated its use for temporary storage of data and compensated for the relative shortage of CPU registers. The PDP-8 had only one register, so zero page addressing was essential.
기 PDP-8 로라는 것 빠른 메모리 드 모드를 갖는다.
는 데를 로 는데 기 고 당 CPU 보려는 것다.
Possibly unimaginable by computer users after the 1980s, the RAM of a computer used to be faster than or as fast as the CPU during the 1970s. Thus it made sense to have few registers and use the main memory as substitutes. Since each memory location within the zero page of a 16-bit address bus computer may be addressed by a single byte, it was faster, in 8-bit data bus machines, to access such a location rather than a non-zero page one.
1980대는 들 만 1970대 CPU 만 빠르고 그 보다 더빠른 메로리가 다. 그러면 대로 메 메로리를 고 를 갖는 것 당다. 16 를 갖는 로 내 각 메모리가 바로 드되기 때문 로내 메모리가 닌 곳보다 로내 메모리를 근는데, 8 데 를 갖는 머보다 더 빨랐다.
For example, the MOS Technology 6502 has only six non-general purpose registers. As a result, it used the zero page extensively. Many instructions are coded differently for zero page and non-zero page addresses:
를 들면 the MOS Technology 6502 는 6개 non-general 목 가 를 가고 다. 결과로 는 것 로라는 개념 게 다. 많 명령들 로 로가 닌 드 다르게 다.
LDA $00 ; zero page
LDA $0000 ; non-zero page
The above two instructions both do the same thing; they load the value of $00 into the A register. However, the first instruction is only two bytes long and also faster than the second instruction. Unlike today's RISC processors, the 6502's instructions can be from one byte to three bytes long.
기 2개 명령 모두 동 다; 것들 A $00라는 값 로드다. 만 명령는 단 2바길 고 두 명령보다 더 빠르다. 늘날 RISC 로 다르게 the 6502 명령들 1바 부 3바 길가 되는 것 가능다.
Zero page addressing now has mostly historical significance, since the developments in integrated circuit technology have made adding more registers to a CPU less expensive, and have made CPU operations much faster than RAM accesses. Some computer architectures still reserve the beginning of address space for other purposes, though; for instance, the Intel x86 systems reserve the first 512 words of address space for the interrupt table.
IC놀로 발 더 로 CPU 를 늘리게 되고 따라 RAM 는 것 보다 더 빠른 CPU명령를 리게 되기 때문 로는 대개는 미를 갖는다. 그럼 구고, 떤 는 다른 목 로라는 개념 공기는 다; 를 들면 x86 럽 블 512드 공 다.
|}}
http://lxr.linux.no/source/Documentation/i386/zero-page.txt
8bit CPU 6502를 로 들겠다.
6502 는 16bit addressing 가능 CPU 다. , $0000 ~ $FFFF .
6502 는 13가 메모리 access 방 는데, 그 나가 zero page addressing 다.
8bit 만 , 8bit 00 로 가고 addressing 면
$0000~$00FF 가 됩다. 렇게 더 빠른 access 가 가능다고 다.
메모리 zero page 라고 는군.
second byte of the instruction and assumming a zero high address byte.
Careful use of the zero page can result in significant increase in code efficient.
(로 명령들 명령 바를 0로 가고 단 두 바만 가로, 드 가다다. 깊게 로 명령 는 것 드 개 가능 다.)
--뉘
뭐 디로 공과 국로( 무 가 -_-) 들는 미가 닐까?X

{{|
The zero page is the memory address page at the absolute beginning of a computer's address space (the lowermost page, covered by the memory address range 0 ... page size1).
로는 메로리 공 가 는 메모리 다. (가 래 는 로 메리 0부 -1만 범를 갖는다)
기 PDP-8 로라는 것 빠른 메모리 드 모드를 갖는다.
는 데를 로 는데 기 고 당 CPU 보려는 것다.
1980대는 들 만 1970대 CPU 만 빠르고 그 보다 더빠른 메로리가 다. 그러면 대로 메 메로리를 고 를 갖는 것 당다. 16 를 갖는 로 내 각 메모리가 바로 드되기 때문 로내 메모리가 닌 곳보다 로내 메모리를 근는데, 8 데 를 갖는 머보다 더 빨랐다.
를 들면 the MOS Technology 6502 는 6개 non-general 목 가 를 가고 다. 결과로 는 것 로라는 개념 게 다. 많 명령들 로 로가 닌 드 다르게 다.
LDA $0000 ; non-zero page
The above two instructions both do the same thing; they load the value of $00 into the A register. However, the first instruction is only two bytes long and also faster than the second instruction. Unlike today's RISC processors, the 6502's instructions can be from one byte to three bytes long.
기 2개 명령 모두 동 다; 것들 A $00라는 값 로드다. 만 명령는 단 2바길 고 두 명령보다 더 빠르다. 늘날 RISC 로 다르게 the 6502 명령들 1바 부 3바 길가 되는 것 가능다.
IC놀로 발 더 로 CPU 를 늘리게 되고 따라 RAM 는 것 보다 더 빠른 CPU명령를 리게 되기 때문 로는 대개는 미를 갖는다. 그럼 구고, 떤 는 다른 목 로라는 개념 공기는 다; 를 들면 x86 럽 블 512드 공 다.
|}}