Keep in mind that M is the contents of the memory location specified by HL.
| Opcode | Operand | Description |
|---|---|---|
| MVI | [Rd/M], Imm | Move 8-bit immediate |
| LDA | IAddr | Load to 16bit addr to A |
| foo |
| (def errors '()) | |
| (defn push-error | |
| "Push an error" | |
| [error] | |
| (def errors (cons error errors)) | |
| nil) |
| xmin = -10; | |
| xmax = 1; | |
| f[x_, a_] = (x + 1) a + (x + 0.7) (x + 0.2) | |
| g[a_] := | |
| (y = x /. Solve[f[x, a] == 0, x]; | |
| pl1 = Graphics[{PointSize[0.02], | |
| Point[Table[{Re[y[[i]]], Im[y[[i]]]}, {i, 1, Length[y]}]]}, | |
| Axes -> True, PlotRange -> {{-3, 0}, {-1, 1}}, Frame -> False, | |
| AspectRatio -> 1, AxesOrigin -> {0, 0}]; | |
| pl2 = Plot[f[x, a] /. a -> 1, {x, xmin, xmax}, |
| ;; Extra keywords | |
| (setq my:elisp-extra-keywords '("and" "interactive" "or" "list" "setq-default" "setq" "setf" "set")) | |
| (font-lock-add-keywords 'emacs-lisp-mode | |
| (mapc '(lambda (kw) (cons kw font-lock-keyword-face)) my:elisp-extra-keywords)) |
| (setq my:elisp-extra-keywords '("and" "interactive" "or" "list" "setq-default" "setq" "setf" "set")) | |
| (font-lock-add-keywords 'emacs-lisp-mode | |
| (mapc '(lambda (kw) (cons (format "\\<[percent]s\\>" kw) font-lock-keyword-face)) my:elisp-extra-keywords)) |
| #include <string.h> | |
| #include <malloc.h> | |
| #define STRING_SIZE 20 | |
| #define STUDENT_NUMBER 100000 | |
| struct Student { | |
| char lastName[STRING_SIZE]; | |
| char firstName[STRING_SIZE]; | |
| }; |
| #include <string.h> | |
| #include <malloc.h> | |
| #include <assert.h> | |
| #define STRING_SIZE 20 | |
| #define STUDENT_NUMBER 100000 | |
| struct Student { | |
| char lastName[STRING_SIZE]; | |
| char firstName[STRING_SIZE]; |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define STR_SIZE 100 | |
| struct studentRecord { | |
| char courseName[STR_SIZE]; | |
| float Mark; | |
| struct studentRecord *next; |