Posts by Paulo de Tarso • 35 points
6 posts
-
-2
votes2
answers241
viewsA: Automation of tasks in linux
I believe it is more comfortable to use a language that is already customary. See the item "Applications" in Wikipedia - Python. A similar question was asked in the English OS (Stackoverflow…
-
0
votes2
answers255
viewsA: My program only runs the first if?
At the end of the function *main()*: if (tri==1) ---> The triangle is equilateral, not scalene! Check the printf(). The condition: if((x==y && y==z) || (x==z && y==z) || (x==y…
-
0
votes3
answers1906
viewsA: Decimal to octal conversion
The problem is the inside of the "while". At each step, you must add to the previous result (variable octal), the digit found by the rest of the current division, offset in its proper position…
-
0
votes1
answer125
viewsA: Computer architecture
a) 9 bits, which is the sum of the 3 largest values = 1 0011 0100 b) there are some coincidences in the sum of three entries, for example: 0 0001 0101 + 0 0100 1010 + 0 0101 0101 = = 0 0001 0110 + 0…
architecture-computersanswered Paulo de Tarso 35 -
1
votes2
answers3974
viewsA: What is "word" of a CPU
Processors respond to program commands (or, by extension, the programmer’s) through machine language, in the form of binary numbers, representing 0 = 0 Volts and 1 = 5 Volts, for example. This…
-
2
votes2
answers892
viewsA: How to convert lowercase string to uppercase in Assembly?
The difference between upper and lower case in the ASCII table (for unstressed letters) is only the 6th bit. To turn from lowercase to uppercase, simply reset bit 6 or make a logical AND with DFH =…