ECS 50 Lecture Notes - Lecture 4: Assembly Language, Delimiter, O Scale

57 views8 pages

Document Summary

Registers: each of the following registers is 32 bits in size. Used as the base pointer in c code. Can be used as a general register in stand alone code. The stack pointer: you can access smaller portions of eax, ebx, ecx, and edx, the following example only shows the syntax for eax but it does apply to the the above mentioned registers. Make space for a byte and initialize it val. Make space for 2 bytes and initialize it val. Make space for 4 byte and initialize it val. Make space for 4 bytes and initialize its value to the iee floating point standard. Make space for null terminated string and initialize it to val. Make space for n bytes of uninitialized memory. All occurrences of label will be substituted with value. While not actually a preprocessor directive _start indicates where execution should begin.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents