CIS-261 Home
http://www.c-jump.com/bcc/
CIS-261 Code Samples
Convert decimal to binary
-
decimal_2_binary.cpp
(download) Program to convert decimal value to binary representation
Bitwise operators and masks
-
bitwise_ops.cpp
(download) examples of & | ~ << operators
Hex to ASCII conversion, Lab 01 exercises 2.47 and 2.49
-
exercises_2_47_and_2_49.cpp
(download) Coding solutions for exercises 2.47 and 2.49
Examples of DATA segment values and MOV instructions
-
Week06demo.asm
(download) MOV instruction uses EBX register as data placeholder or an address pointing to memory
Examples of x86 instruction encoding
-
encoding_x86_instructions.asm
(download) Demonstrates binary encodings of instructions presented in Encoding Real x86 Instructions lecture
IO.H and IO.ASM usage demo
-
ATOI_ITOA_DEMO.ASM
(download) Console Input/Output ATOI and ITOA usage
-
M08.ASM
(download) Console Input/Output OUTPUT, INPUT, SZLEN, DTOA, ITOA, ATOI usage
-
M08demo.ASM
(download) Lab M08, Console Input/Output, range -128 to 127 validation
-
M08demo14F.ASM
(download) Lab M08, Console Input/Output, validate range 0 to 255
C function pointer demo
-
fun_ptrs.cpp
(download) Using function pointers and typedef
ASM addressing similar to C array
-
c_arrays.asm
(download) ASM program using indirect addressing
C array syntax
-
c_arrays.cpp
(download) Using arrays and pointers to access memory
Lab M09 demo for Beep, Sleep, and GetLastError API calls
-
make_beeps_15F.asm
(download) Lab M09, Data Arrays and Windows API Calls,
int to binary string conversion
-
display_bits.cpp
(download) Demonstrates bit shift operators in C/C++
Inline assembly demo
-
inline_assembly_demo.cpp
(download) Tricks with Visual C++
__asm
keyword
C++ program that checks for multiplication overflow
-
main_multiplication_overflow.cpp
(download) using in-line assembly (__asm) section
state machine implementing desktop calculator
-
main_sm_calc.cpp
(download) state machine implementing desktop calculator
Lab M12, calling C standard library functions
-
m12_demo.asm
(download) Calling C strlen( ) and strncpy( ) from Assembly
Lab M13 demo, invoking ASM procedure from C
-
M13_main.cpp
(download) main driver program
-
M13_COPYSTR.ASM
(download) Using Assembly with High-Level Languages
Lab M13 demo, dynamic memory allocation
-
M13_main.cpp
(download) main driver program
-
M13_NEWARRAY.h
(download) extern function prototypes
-
M13_NEWARRAY.cpp
(download) extern function implementations
-
M13_COPYNEW.ASM
(download) Using Assembly with High-Level Languages
Final Poject
-
m13_main.cpp
(download) main driver program for "Running Total" calculator
-
m13.h
(download) C++ function declarations
-
m13.cpp
(download) C++ function implementations
-
m13_externs.h
(download) declarations of global variables and extern function prototypes
-
m13_externs.cpp
(download) definitions of global variables and implementation of global functions
-
m13_calculator.asm
(download) Using Assembly with High-Level Languages, math handler procedures