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
; | |
;I want to describe my algorithm here cause this is so easig to use in this program | |
;We have got four number as a,b,c and d | |
;I compare firstly a and b and select the bigger one | |
;Next,I compare c and d and select the bigger one | |
;In concluion i compare this two result | |
; | |
;a->R1 , b->R2 ,b->R3 ,d->R4 | |
;compare a and b,move the bigger one to R5 | |
;compare c and d,move the bigger one to R6 |
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
load rf,10 | |
load rf,10 | |
load rf,10 | |
load rf,10 | |
load r1,[pay] | |
load r2,[payda] | |
load r3,0 ;bolum | |
load r4,11111111b ;XOR necessarities |
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
LOAD RF,10 ;cleaning screen | |
LOAD RF,10 | |
LOAD RF,10 | |
LOAD RF,10 | |
LOAD R1,8 ;loading integers registers | |
LOAD R2,3 | |
LOAD R3,2 | |
LOAD R4,11111111b ;tools we use when get two's compliment |
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
load rf,10 ;cleaning screen | |
load rf,10 | |
load rf,10 | |
load rf,10 | |
load r1,Array ;loading array first adress | |
load r2,1 ;step | |
load r0,0 ;condition check | |
load r3,0 ;total |
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<iostream> | |
using std::cout; | |
using std::endl; | |
int main(void) | |
{ | |
int a[10]; | |
cout<<"a="<<a<<" a+1="<<(a+1)<<" a+2="<<(a+2)<<" a+3="<<(a+3)<<endl<<endl; |
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 <iostream> | |
using namespace std; | |
#define POINTER_CREATION | |
#define REAL_CREATION | |
class Aaa{ | |
public: | |
Aaa() |
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 <iostream> | |
#include <string> | |
using namespace std; | |
class Exception | |
{ | |
public: | |
Exception(string e) | |
{ |
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 <iostream> | |
//#define EXCEPTION_TEST1 | |
#define EXCEPTION_TEST2 | |
using namespace std; | |
class Exception | |
{ | |
public: | |
Exception(string e) |
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 <iostream> | |
using namespace std; | |
class Exception | |
{ | |
public: | |
Exception(string e) | |
{ |
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 <iostream> | |
//#define TEST1 //yanlıs obje olusmaz | |
//#define TEST2 //yanlıs A da c dıe bısı yok | |
//#define TEST3 //yanlıs upcasting downcasting olayı | |
//#define TEST4 //calısıo | |
//#define TEST5 //yanlıs templatelık | |
class A | |
{ |
OlderNewer