Click here to Skip to main content
15,914,481 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: How ANgry... Pin
Johann van der Smut31-Dec-13 0:24
Johann van der Smut31-Dec-13 0:24 
GeneralRe: How ANgry... Pin
Manfred Rudolf Bihy31-Dec-13 1:01
professionalManfred Rudolf Bihy31-Dec-13 1:01 
GeneralRe: How ANgry... Pin
Roger Wright31-Dec-13 3:22
professionalRoger Wright31-Dec-13 3:22 
GeneralRe: How ANgry... Pin
Jörgen Andersson31-Dec-13 23:26
professionalJörgen Andersson31-Dec-13 23:26 
GeneralCourse Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Jon Plotner30-Dec-13 10:37
Jon Plotner30-Dec-13 10:37 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? PinPopular
Albert Holguin30-Dec-13 10:56
professionalAlbert Holguin30-Dec-13 10:56 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Gregory Gadow30-Dec-13 11:00
Gregory Gadow30-Dec-13 11:00 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? PinPopular
YvesDaoust30-Dec-13 11:28
YvesDaoust30-Dec-13 11:28 
Assembler language is no rocket science, you can learn it by yourself. Here is an accelerated course:

Your processor has registers (int and float), it performs arithmetic & logic instructions (taking two or three operands); operands are in registers or taken from/to memory through simple address computation; memory holds a special area called the stack (lifo); you can "label" the instructions and jump to them, unconditionally or based on the result of the previous instruction (sign, overflow); there are special jumps called "calls" from which you can jump back later.
C++
Solve:
  load f0, K[0] // Read coefficient A
  load f1, K[1] // Read coefficient B
  load f2, K[2] // Read coefficient C
  load f3, f1 // Copy B
  mul f3, f3 // Square it
  mul f2, f0 // Multiply C by A (C overwritten)
  mul f2, 4 // 4.A.C
  sub f3, f2 // B.B - 4.A.C
  jmp neg, Done // No root
  push f3 // Push the argument onto the stack
  call Sqrt // Call the square root function
  pop f3 // Get the return value, Sqrt(B.B - 4.A.C)
  sub f3, f1 // - B + Sqrt(D)
  mul f0, 2 // 2.A
  div f3, f0 // (- B + Sqrt(D)) / 2.A
  store X, f3 // Write the root
Done:
  ret // Return control to the caller

If you were able to follow that code, you can move on to the Discrete Mathematics course, for which no accelerated version is available. Smile | :)

modified 30-Dec-13 17:37pm.

GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Nelek30-Dec-13 12:22
protectorNelek30-Dec-13 12:22 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Jon Plotner30-Dec-13 13:16
Jon Plotner30-Dec-13 13:16 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Albert Holguin30-Dec-13 16:21
professionalAlbert Holguin30-Dec-13 16:21 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Jon Plotner30-Dec-13 17:46
Jon Plotner30-Dec-13 17:46 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Albert Holguin30-Dec-13 18:14
professionalAlbert Holguin30-Dec-13 18:14 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Nelek31-Dec-13 0:08
protectorNelek31-Dec-13 0:08 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
BillWoodruff30-Dec-13 16:05
professionalBillWoodruff30-Dec-13 16:05 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Albert Holguin30-Dec-13 16:17
professionalAlbert Holguin30-Dec-13 16:17 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Lutosław30-Dec-13 12:13
Lutosław30-Dec-13 12:13 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Albert Holguin30-Dec-13 12:38
professionalAlbert Holguin30-Dec-13 12:38 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Jon Plotner30-Dec-13 13:05
Jon Plotner30-Dec-13 13:05 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Albert Holguin30-Dec-13 16:13
professionalAlbert Holguin30-Dec-13 16:13 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Ron Beyer30-Dec-13 16:33
professionalRon Beyer30-Dec-13 16:33 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Albert Holguin30-Dec-13 18:13
professionalAlbert Holguin30-Dec-13 18:13 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Ron Beyer30-Dec-13 18:19
professionalRon Beyer30-Dec-13 18:19 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
Albert Holguin30-Dec-13 18:44
professionalAlbert Holguin30-Dec-13 18:44 
GeneralRe: Course Selection? Discrete Mathematics, or Machine Org/Assembler Language? Pin
thrakazog30-Dec-13 12:16
thrakazog30-Dec-13 12:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.