Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags

9 Posted Topics

Member Avatar for brunoccs

Given the following C code: `B[8] = A[i - j]` Assuming B = $s7, A = $s6, i = $s3 and j = $s4 What would the assembly code be? sub $s3, $s3, $s4 # i - j sll $s3, $s3, 2 # multiply the offset by 4 add $s3, …

Member Avatar for Ánh
0
2K
Member Avatar for brunoccs

Give then following Class declaration: class Employee { public string Name { get; set; } public int Age { get; set; } public override bool Equals(object obj) { Console.WriteLine("In Equals(Object)"); if (obj is Employee) if (this.Name == (obj as Employee).Name && this.Age == (obj as Employee).Age) return true; else return …

Member Avatar for Momerath
0
172
Member Avatar for brunoccs

"The method overriding is an example of runtime polymorphism. You can have a method in subclass overrides the method in its super classes with the same name and signature. Java virtual machine determines the proper method to call at the runtime, not at the compile time." Why not at compile …

Member Avatar for JamesCherrill
0
150
Member Avatar for 4344

Sorry, this is not a answer, and I'm a newbie: What kind of assembly is this, that has IF and ELSEIF?

Member Avatar for GunnerInc
0
126
Member Avatar for brunoccs

I've writen the following MIPS assembly code to test for arithmetic overflow .text add $s0, $zero, 0x80000000 add $s1, $zero, 0xD0000000 add $t0, $s0, $s1 MARS is translates the code above into this: lui $1, 0xffff8000 ori $1, $1, 0x00000000 add $16, $0, $1 lui $1, 0xffffd000 ori $1, $1, …

Member Avatar for Schol-R-LEA
0
500
Member Avatar for brunoccs

This is exercice 1.8.6 from Computer Organization and Design The Hardware Software Interface Suppose that the industry trends show that a new process generation varies as follow: Capacitance Voltage Clock Rate Area a. 1 1/2^1/2 1.15 1/2^1/2 b. 1 1/2^1/4 1.2 1/2^1/4 Assuming a Core 2 processor with a clock …

Member Avatar for nezachem
0
93
Member Avatar for brunoccs

"Dynamic Power" = "Capacitive Load" times "Voltage²" times "Frequency Switched" Would anyone be so kind as to tell me if Frequency Switched is the same as Clock Rate?

Member Avatar for Schol-R-LEA
0
80
Member Avatar for brunoccs

I've written (more like copied) the following assembly code : section .text global main main: mov edx,len mov ecx,msg mov ebx,1 mov eax,4 int 0x80 mov eax,1 int 0x80 section .data msg db 'Hello, world!', 0xa len equ $ - msg I've compiled it with NASM using the following command: …

Member Avatar for brunoccs
0
301
Member Avatar for silvercats

The End.