Commits

Kareem Callender committed b7e4c4f Draft

Updated readme with dd/dq acknowledgement.

Comments (0)

Files changed (2)

gbread/Base/Assembler.cs

                                     result = res1 % res2;
                                     return ErrorMessage.NO_ERROR;
                                 case "<<":
-                                    result = res1 << (int)res2;
+                                    result = res1 << (int)res2; // Right side has to be an int.
                                     return ErrorMessage.NO_ERROR;
                                 case ">>":
-                                    result = res1 >> (int)res2;
+                                    result = res1 >> (int)res2; // Right side has to be an int.
                                     return ErrorMessage.NO_ERROR;
                                 case "<":
                                     result = res1 < res2 ? 1 : 0;

gbread/about asm.txt

 
 Data definition:
 You can specify data to insert, at any place. Start with the size of data (db,
-dw), then the list of data being inserted, separated by commas. Variables and
-expressions can also be used in these definitions.
+dw, dd, dq), then the list of data being inserted, separated by commas.
+Variables and expressions can also be used in these definitions.
 Ex:
 db $23,$34,VAR_NAME
 dw $3149,$4794,$15F
+dd $43245628
+dq $993F6523B7D63468
 
-db is used to insert bytes (8-bit), and dw is used to insert words
-(16-bit, little endian). As with instructions, if numbers are too wide or too
+db : Byte
+dw : Word (16-bit)
+dd : Dword (32-bit)
+dq : Qword (64-bit)
+
+As with instructions, if numbers are too wide or too
 short, they will be extended or truncated to fit. For example,
 
 db $6534
 
 .
 
-
 Comments:
 Append single line comments to lines with #, or ;.
 Ex:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.