This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:multiasm:papc:chapter_6_4 [2025/05/15 11:51] – [Floating point values] ktokarz | en:multiasm:papc:chapter_6_4 [2025/05/18 19:02] (current) – [Pointers] ktokarz | ||
|---|---|---|---|
| Line 84: | Line 84: | ||
| ===== Floating point vector data types ===== | ===== Floating point vector data types ===== | ||
| - | Single | + | Floating point vectors are formed with single or double |
| - | Double | + | It is worth mentioning that some instructions operate on a single floating-point value, using only the lowest elements of the operands. |
| - | Double extended | + | |
| - | Half precision | + | <figure packedfloattypes> |
| - | Brain Float | + | {{ : |
| + | < | ||
| + | </ | ||
| + | |||
| + | ===== Bit field data type ===== | ||
| + | A bit field is a data type whose size is counted by the number of bits it occupies. The bit field can start at any bit position in the fundamental data type and can be up to 32 bits long. MASM supports it with the RECORD data type. The bit field type is shown in figure {{ref> | ||
| + | |||
| + | <figure bitfieldtype> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Pointers ===== | ||
| + | Pointers store the address of the memory which contains interesting information. They can point to the data or the instruction. If the segmentation is enabled, pointers can be near or far. The far pointer contains the logical address (formed with the segment and offset parts). The near pointer contains the offset only. The offset can be 16, 32 or 64 bits long. The segment selector is always stored as a 16-bit number. Illustration of possible pointer types is shown in figure {{ref> | ||
| + | |||
| + | <figure pointertypes> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | The offset is often the result of complex addressing mode calculations and is called an effective address. | ||
| + | </ | ||