This file contains hidden or 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
.section __TEXT,__text,regular,pure_instructions | |
.globl _sum | |
.align 4, 0x90 | |
_sum: ## @sum | |
.cfi_startproc | |
## BB#0: | |
pushq %rbp | |
Ltmp2: | |
.cfi_def_cfa_offset 16 | |
Ltmp3: |
This file contains hidden or 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
def addition(a,b): | |
try: | |
return a + b | |
except TypeError: | |
print("Parameters must be numeric") | |
def subtraction(a,b): | |
try: | |
return b - a | |
except TypeError: |
This file contains hidden or 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> | |
#include <sys/errno.h> | |
#include <sys/types.h> | |
#include <sys/ipc.h> | |
#include <sys/msg.h> | |
#include <stdlib.h> | |
int main(int argc,char *argv[]){ |
This file contains hidden or 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 <sys/errno.h> | |
#include <sys/types.h> | |
#include <sys/ipc.h> | |
#include <sys/msg.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
//removed by doug | |
//#include "message.h" |
This file contains hidden or 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
// 0.Documentation Section | |
// Lab7_HeartBlock, main.c | |
// Runs on LM4F120 or TM4C123 LaunchPad | |
// Input from PF4(SW1) is AS (atrial sensor), | |
// Output to PF3, Green LED, is Ready, | |
// Output to PF1, Red LED, is VT (ventricular trigger) | |
// Make PF4 input, PF3,PF1 output | |
// Initialize Ready to high and VT to low | |
// Repeat this sequence of operation over and over |
This file contains hidden or 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
reverseList :: [a] -> [a] | |
reverseList [] = [] | |
reverseList a = last a : reverseList (init a) |
This file contains hidden or 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
*Main> :load reverse.hs | |
[1 of 1] Compiling Main ( reverse.hs, interpreted ) | |
Ok, modules loaded: Main. | |
*Main> let a = [1..10] | |
*Main> a | |
[1,2,3,4,5,6,7,8,9,10] | |
*Main> reverseList a | |
[10,9,8,7,6,5,4,3,2,1] |
This file contains hidden or 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 simple implmentation of functions to manipulate an array in C. | |
* | |
* GistID: fe4b47db44173247be6f | |
*/ | |
#include <stdio.h> | |
#include "UART.h" | |
#include "TExaS.h" | |
void EnableInterrupts(void); // Enable interrupts |
This file contains hidden or 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
// ***** 0. Documentation Section ***** | |
// main.c for Lab 9 | |
// Runs on LM4F120/TM4C123 | |
// In this lab we are learning functional debugging by dumping | |
// recorded I/O data into a buffer | |
// February 21, 2014 | |
// Lab 9 | |
// Jon Valvano and Ramesh Yerraballi |
This file contains hidden or 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
// GistID: 105a8238cde06b80a8a7 | |
#ifndef SYSTICK_FUNC | |
#define SYSTICK_FUNC | |
#include "tm4c123gh6pm.h" | |
#define SYSTICK_TEN_MS_COUNT 800000 | |
// Declare Systick Functions | |
void SysTick_Init(void); | |
void SysTick_Wait10ms(unsigned long); |