View reverse.asm
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
.model small | |
.stack 100h | |
.data | |
.code | |
main proc | |
;inPUTING VALUE | |
mov ah,1 |
View string.asm
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
.model small | |
.stack 100h | |
.data | |
text db "hello world $$" | |
.code | |
main proc | |
mov bx, @data | |
mov ds, bx |
View string_print_madam.asm
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
.model small | |
.stack 100h | |
.data | |
a db ? | |
b db 101 | |
c dw 'STRING DOLLAR $' | |
.code | |
main proc | |
mov ax, @data |
View addition.asm
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
.model small | |
.stack 100h | |
;VRIABLE DEC LARATION PART | |
.data | |
a db ? | |
b db ? | |
c dw "Enter 1st Input:$" | |
d dw "Enter 2nd Input:$" | |
e dw "Display:$" |
View SQL.sql
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
1. select Customer_street from customer where Customer_name in(select Customer_name from borrower where Loan_number in(select loan_number from loan)); | |
2. select amount from loan where amount >(select amount from loan where Loan_number = 'L-15'); | |
3. SELECT CUSTOMER_NAME,CUSTOMER_CITY FROM CUSTOMER WHERE CUSTOMER_NAME IN (SELECT CUSTOMER_NAME FROM BORROWER WHERE LOAN_NUMBER IN(SELECT LOAN_NUMBER FROM LOAN WHERE BRANCH_NAME='Downtown')); | |
4.SELECT CUSTOMER_NAME,CUSTOMER_CITY FROM CUSTOMER WHERE CUSTOMER_NAME IN (SELECT CUSTOMER_NAME FROM BORROWER); | |
5. SELECT CUSTOMER_NAME FROM BORROWER WHERE LOAN_NUMBER IN(SELECT LOAN_NUMBER FROM LOAN WHERE BRANCH_NAME IN(SELECT BRANCH_NAME FROM LOAN WHERE LOAN_NUMBER IN (SELECT LOAN_NUMBER FROM BORROWER WHERE CUSTOMER_NAME= 'Adams'))); |
View jump.asm
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
.model small | |
.stack 100h | |
.data | |
a db ? | |
.code | |
main proc | |
mov ax, @data |
View switch_in_asm.asm
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
.model small | |
.stack 100h | |
.data | |
a db ? | |
c dw 'you are in level $' | |
d dw 'restrictin ...you are in server room $' | |
e dw 'Invalid level entered $' | |
.code |
View improved_switc.asm
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
.model small | |
.stack 100h | |
.data | |
a db ? | |
c dw 'you are in level $' | |
d dw 'restrictin ...you are in server room $' | |
e dw 'Invalid level entered $' | |
.code |
View buggy_string.cpp
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 <iostream> | |
#include <cstdlib> | |
// prototype in function | |
char* myStrCpy(char* dest, const char* src); | |
bool matching(const char* str1, const char* str2); | |
static char* myStrCat(char* buffer, const char* readOnlyStr); | |
int positionIndex(const char* fullStr, const char* portionString); | |
static const char* myStrStr(const char* s1, const char* s2); |
View plug.vim
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
call plug#begin() | |
Plug 'tpope/vim-sensible' | |
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer' } | |
function! BuildYCM(info) | |
if a:info.status == 'installed' || a:info.force | |
!./install.sh --clang-completer | |
endif | |
endfunction | |
Plug 'Valloric/YouCompleteMe', { 'do': function('BuildYCM') } |
OlderNewer