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 \masm32\include\masm32rt.inc | |
; This file contains a procedure to calculate x^n in MASM32 x86 Assembly. | |
.data | |
base DW 5 | |
exponent DW 6 | |
result Dd ? | |
asciinumbuffer db 256 dup(?) | |
consolemsg db "x to the n is: ",0 |
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 \masm32\include\masm32rt.inc | |
; LeetCode Problem #9 | |
; Given an integer x, return true if x is a palindrome, and false otherwise. | |
; Decimal numbers passed through this procedure will have to be converted to ascii first. | |
.data | |
prompt DB "Enter a number: ",0 | |
palindromeTN DB "The number ",0 | |
palindromeT DB " is a palindrome.",13,10,0 |
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 \masm32\include\masm32rt.inc | |
; password is: masm32 | |
;________________________________________ | |
; Note: This code is not safe for prod. | | |
; as password is in plaintext when exe | | |
; is examined by a hex viewer. | | |
;________________________________________ | |
.data | |
hex_pw db 6Dh,61h,73h,6Dh,33h,32h,00h ; password stored as hex, ending with 00h |
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 <Servo.h> | |
// Made for final TEJ3M Culminating April 2021 | |
Servo myservo; // create servo object to control a servo | |
int pos = 0; //makes a position variable to easily write code for it | |
int green = 10; //sets the green LED on pin 10 | |
int yellow = 9; //sets the yellow LED on pin 9 | |
int red = 8; //sets the red LED on pin 8 | |
void setup() { |
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 \masm32\include\masm32rt.inc | |
.data | |
prompt db "input a number to square here: ", 0 | |
prntNumBuffer dw ? | |
prntSqrBuffer dw ? | |
prompt2 db "your number was: ", 0 | |
prompt3 db "the square is: ", 0 | |
square dw ? |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e96c-e325-11ce-bfc1-08002be10318}\0000\GlobalSettings] | |
"CenterLfeSwap"=hex:00,00,00,00 | |
"CreateRearMaxOutChannels"=hex:00,00,00,00 | |
"DcOffsetWorkaround"=hex:01,00,00,00 | |
"DisableTimerResolution"=hex:01 | |
"EnableDynamicDevices"="" | |
"EnableWaveRT"=hex:01,00,00,00 | |
"FirstDrvLoad"=hex:00 |