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
BR main | |
kyle: .block 2 ;global variable #2h .word josh | |
josh: .block 2 ;global variable #2h ;local variable #2h .word keegan | |
keegan: .block 2 ;global variable #2h .word kyle | |
constanc: .block 2 ;global variable #2h .word dauris | |
dauris: .block 2 ;global variable #2h .word josh | |
main: NOP0 | |
lda kyle,i | |
sta keegan,d |
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
BR main | |
msg: .ASCII "Beans beans beans beans beans!\x00" | |
main: NOP0 | |
;Set up index register to 0 | |
LDX 0,i | |
loop:NOP0 |
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
;program for if(x>2) 1; else 0; | |
BR main,i | |
x: .BLOCK 2 ;global variable #2d | |
main: NOP0 | |
charo 'm',i | |
deci x,d | |
lda x,d ;A is now x | |
cpa 2,i ;accumulator-preserving subtraction, flags reflect x-2 | |
;now that flags are set, branch RIGHT AWAY!!!!!!1!111!!! |
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
BR main,i | |
prompt: .ASCII "Please enter two number\n\x00" | |
num1: .equate 0 ;local variable #2d | |
num2: .equate 2 ;local variable #2d | |
sum: .equate 4 ;local variable #2d | |
frame: .equate 6 ;total size of num1,num2,sum | |
;extra junk here | |
main: NOP0 ;No-op jump point, for legibility | |
STRO prompt,d ;explain the pause |
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
;CONSTANTS | |
; * local variable stack offsets (with trace tags) [s addressing] | |
; * local variable stack sizes [i addressing] | |
msgLtr1: .EQUATE 0 ;local variable #1c | |
msgLtr2: .EQUATE 1 ;local variable #1c | |
msgLtr3: .EQUATE 2 ;local variable #1c | |
frameMai: .equate 3 | |
addr1: .EQUATE 0 ;local variable #2h |
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
/** | |
* @file cs131_program_1_FLAST.c | |
* @author YOUR NAME HERE | |
* @author Prof. Adams | |
* @date THE CURRENT DATE | |
*/ | |
// INSTRUCTIONS: | |
// TASK 0/5: LOG IN TO ECLIPSE AND TYPE THE FOLLOWING IN PuTTY: | |
// cd ~/cs131 |
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
#include <stdio.h> | |
int main(int argc, char const *argv[]) | |
{ | |
for(int i=0; i<33; i++) | |
{ | |
printf("Dec: %4d\tHex: %x\n",i,i); | |
} | |
for(int i=0; i<80; i++) { printf("-"); } | |
printf("\n"); |
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
digraph fig1_9 | |
{ | |
input [label="Input devices"]; | |
cpu [label="Central processing unit"]; | |
memory [label="Main memory"]; | |
output [label="Output devices"]; | |
bus [label="System Bus"]; | |
input->bus; | |
cpu->bus->cpu; | |
memory->bus->memory; |
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
A ALG HORNARTERGENER | |
COMPILED BY CASE 1107 ALGOL 60 (FAST VERSION) DATEO O.CTOBER 1, 1967 | |
THIS COMPILATION WAS DONE ON 27 OCT 67 AT 16:01:07 | |
1 COMMENT: THIS_PROGRAM CALCULATES THE HORNFUNCTION U(Z),LOG DERIVATIVE | |
2 O(Z) ANn DERIVATIVE DUDZ OF A HORN WITH THE FUNCTION OF ITS GEOMETRY | |
3 RG(X), FIRST, SECOND AND THIRD DERIVATIVE KNOWN. SPHERICAL WAVES $ | |
4 STRING W(40) $ INTEGER N,I $ | |
5 REAL B,ALPHA,X,RG,H,Z,Z0,Z1,RR,DHDX,D2HDX,DRDX,D2RDX,D,DZDX, |
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
//Day 12 C routines | |
#include <stdio.h> | |
void routineA(); | |
void routineB(); | |
void routineC(); | |
void routineD(); | |
int main() |