flowchart TD
Q5 --b--> Q5
Q5 --b--> Q4
Q4 --a--> Q4
Q4 --e--> Q5
Q0 --a--> Q4
Q0 --a--> Q0
Q0 --a--> Q3
Q0 --e--> Q1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Initial code referenced from https://github.com/robert/wavefunction-collapse | |
import random | |
import math | |
from typing import Literal | |
import colorama | |
# Types | |
Tile = str | |
Coordinates = tuple[int, int] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startup: bl main | |
halt | |
; function that ensures that user input | |
; is always between 1 and 100 inclusive | |
; the return value is saved into r0 | |
getnuminrange: push lr | |
push fp | |
mov fp, sp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startup: bl main | |
halt | |
main: push lr | |
push fp | |
mov fp, sp | |
;; TODO: comment out the following chunk of code in order to have the program run | |
push rr | |
push ' ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in solarized dark, the following textmate capture names have the following colors: | |
blue: | |
- entity.name.tag | |
- entity.name.function (DONE: used for mnemonics) | |
- support.function | |
- support.function.git-rebase | |
- variable.language | |
- variable.other |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; attempt to make a delay between the printing of tokens | |
; such as two strings. the delay below is attempted via | |
; running a nested loop a couple hundred times. it doesn't | |
; yet seem to create any noticeable delay, and if the loops | |
; are increased to their maximum amount of 255, then the | |
; LCC compiler will fail to compile the program, stating | |
; that there is possibly an infinite loop. the eventual | |
; goal of this exercise is to create delay/sleep function | |
startup: bl main |
Welcome! Please let me know if you have any additional questions, answers, corrections, and/or suggestions via email at druckera2@newpaltz.edu
Mnemonic | Binary Format | Flags Set | Description |
---|---|---|---|
br-- | 0000 cc pcoffset9 | if cc, pc = pc + pcoffset9 | |
add | 0001 dr sr1 000 sr2 | nzcv | dr = sr1 + sr2 |
add | 0001 dr sr1 1 imm5 | nzcv | dr = sr1 + imm5 |
ld | 0010 dr pcoffset9 | dr = mem[pc + pcoffset9] | |
st | 0011 sr pcoffset9 | mem[pc + pcoffset9] = sr | |
bl, call, or jsr | 0100 1 pcoffset11 | lr= pc; pc = pc + pcoffset11 |
graph LR;
Resource
Resource --> Course
Resource --> CourseSection
Resource --> CourseSyllabus
Resource --> LearningComponent
LearningComponent --> AssociatedMaterial
AssociatedMaterial --> ReferencedMaterial
AssociatedMaterial --> SupplementalMaterial
graph LR;
s--1-->a;
a--0--> c
s--0-->b;
b--1-->a;
a--1-->a;
b--0-->b;
c--0-->c;
NewerOlder