Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:multiasm:papc:chapter_6_12 [2025/11/16 13:44] – [Constants] ktokarzen:multiasm:papc:chapter_6_12 [2025/11/17 08:33] (current) – [Constants] ktokarz
Line 202: Line 202:
 int_const_octal = 372o          ; finished with "o", "O", "q", or "Q" int_const_octal = 372o          ; finished with "o", "O", "q", or "Q"
 int_const_hex = 0FFA4h          ; finished with "h", or "H" int_const_hex = 0FFA4h          ; finished with "h", or "H"
-int_const_expr = const_dec * 5+int_const_expr = int_const_dec * 5
 </code>  </code> 
 Floating-point numeric constants can be defined with the **EQU** directive only. The number can be expressed in decimal or scientific notation. Floating-point numeric constants can be defined with the **EQU** directive only. The number can be expressed in decimal or scientific notation.
Line 209: Line 209:
 real_const2 EQU 6.28e2          ; scientific real_const2 EQU 6.28e2          ; scientific
 </code> </code>
-Text string constants can be defined with **EQU** or **TEXTEQU** directives. Text constants assigned with the **EQU** directive can be redefined later in the program. The **TEXEQU** is considered a text macro and is described in the section about macros.+Text string constants can be defined with **EQU** or **TEXTEQU** directives. Text constants assigned with the **EQU** or **TEXTEQU** directive can be redefined later in the program. The **TEXEQU** is considered a text macro and is described in the section about macros.
 <code asm> <code asm>
 text_const1 EQU 'Hello World!' text_const1 EQU 'Hello World!'
 text_const2 EQU "Hello World!" text_const2 EQU "Hello World!"
 </code> </code>
- 
-Integer constants: 
-binary, 1b, 0101B, -10y, 111111Y 
-octal, 34o, -746O, 2167q, 0Q 
-decimal, 39, 12d, 1200D, -90t, 56T 
-hex, 0h, 14A6h, 0FE3H 
-.RADIX base directive: 
-(.RADIX 16) 
-Floating point constants: 
-decimal notation, 1.0, 3.1415, -0.5 
-exponent notation, 1e5, 1.56e-2, -15.7e+12 
- 
-String is an array of characters. 
-‘Hello world’ 
-”123*x=??? 
-Equal notations: 
-mov BH,’A’ 
-mov BH,”A” 
-mov BH,41h 
  
  
en/multiasm/papc/chapter_6_12.1763300699.txt.gz · Last modified: 2025/11/16 13:44 by ktokarz
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0