------- | Command | Memory | Command Operation |
---|---|---|---|
00001 | 00001011 | 00010010 | READ B |
00010 | 00001101 | xxxxxxxx | WAIT B |
00011 | 00001011 | 11000000 | READ C |
00100 | 00001101 | xxxxxxxx | WAIT C |
----- | -------- | -------- | ------ |
00101 | 00000001 | 00010000 | LOAD A |
Command | Operator | Usage |
---|---|---|
00000000 | stop | |
00000001 | load | memória -> acumulador |
00000010 | store | acumulador -> memória |
00000100 | add | acumulador -> acumulador + memória |
00000101 | negativo | inverte sinal do acumulador |
00001000 | jump | desvia em condicional |
00001001 | jle | desvia se acum = 0 |
00001010 | jgt | desvia se acum > 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
class Book | |
attr_reader :name, :author, :year | |
def initialize(name, author, year) | |
@name = name | |
@author = author | |
@year = year | |
end | |
def full_description |
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 <stdio.h> | |
#include <stdlib.h> | |
void populateMatrix(int* matrix[], int width, int height) { | |
for(size_t i = 0; i < width; i++) { | |
for(size_t j = 0; j < height; j++) { | |
matrix[i][j] = i+j; | |
} | |
} | |
} |
Basic Operations
The basic operations of one programming language is the basic math and logical operators.
Math
- Sum
- Minus / Division
During my studies of object oriented programming and good practices, one law/practice have gained my attention, and this was the Law of Demeter (LoD). But why this law have gained my attetion so easy? Simple, when I readed the principles os LoD I remembered a lot of codes that I have coded that breaks this law.
(Short Answer) — Basically LoD say that your object can only talk with their neighbors. On some OOP languages, simplify thinking "Use only one dot".
Unofficial documentation to internal Riot Games APIs for LOL eSports.
Unofficial documentation to internal Riot Games APIs for LOL eSports.
NewerOlder