Index
R
RAM chips, 54, 59
rand function, 491–499
random-access memory (RAM), 54, 55–57
random numbers, generating, 491
RANDTEST.ASM program, 493–500
RCL instruction, 316, 466
RCR instruction, 316, 466
read-only memory (ROM), 277
read/write head, 77, 78
real mode, 159, 175, 204, 248
segment addresses in, 163, 165–167, 322
real mode flat model, 152, 153, 173, 175–177, 182
example program in, 228–237
flags in, 217
limits of, 240
memory data in, 207
and modular assembly, 300
and NASM-IDE, 300
prefix in, 230
sections in, 231
segment registers in, 176, 207, 229, 243, 249, 371
stack crash in, 250, 274
real mode memory, 157
real mode segmented model, 152–161, 165, 177–180, 595–596
batch files in, 300
registers in, 167, 173, 178–179, 243, 249, 371
sample program in, 240–243
sections in, 231
stack in, 274–275, 291
real-time clock support, 482
rebooting, 103
record, 483
Red Hat Linux, 404, 468
Red Hat Package Manager (RPM), 406
redirection operator, 99
register(s). See also specific registers
and C calling conventions, 454–455, 457
in CPU, 65–66, 71, 164–174
and debuggers, 105, 107, 114–118, 183–191, 437–443
function of, 165, 182
halves of, 169, 171–172, 209
moving data to/from, 194–195, 199, 207
for peripherals, 66
on stack, 251, 255
and strings, 371–373
Unix naming convention for, 422
register addressing, 200
register data, 198–202
and bit shifting, 323
type of, 224
relays, 51
relocatable object module (.OBJ file), 88–90, 96
REP prefix, 373–374, 377
RESB (Reserve Byte) directive, 250, 477, 478, 487
RESD (Reserve Double) directive, 487
reserve pseudoinstructions, 486–487
RESQ (Reserve Quad) directive, 487
REST (Reserve Ten-Byte) directive, 487
RESW (Reserve Word) directive, 487
RET instruction, 265, 272–274, 280, 343, 429, 454, 505, 577
reverse video, 185
Richman, Bill, 49
ROL instruction, 316, 466, 578–579
ROR instruction, 316, 466, 580–581
rotate instructions, 316, 465–466
rotating disk device, 77–78
RULER.ASM program, 380
Ruler macro, 379–380, 382–383, 386, 387, 397