21

Re-writing IBM Asembler code to C. No documentation whatsoever. Code was our only reference.

Comments
  • 3
    Alot of this weeks rants are about IBM lol
  • 1
    Same story, but i am fixing banking systems (Cobol) with c++14 ( now17 actually) with a decent dose of self control and some linker scripts rainbow magic
  • 1
    But if you would want to be lazy, aren't most old assembler instructions mappable to simple C statements? Season that with some goto instead of proper control logic, and variables named after the registers, and you're half way home, right?
  • 1
  • 1
    Well played... just reminding me when porting bluetooth driver in FreeBSD... my only friend is VCS and low bandwidth... it's happening just about... 9 years ago
  • 0
    @siljamicke That could possibly work but considering that we wanted to do it the "proper" way and we wanted assembler to run alongside C code, we had to do some magic with the addresses since assembler is running below the line (24bit) and C natively runs above the line (31bit). It was a lot of fun
  • 1
    @esavier reminds me of the time when I migrated a C/C++ code to COBOL. Imagine that haha!
  • 2
    Just inline the existing assembly. Let it be "the next guy"'s problem. 😂
  • 1
    @vlxdxmxr
    Hah good times good times :D
  • 0
    @vlxdxmxr dammit! Here you go dropping sayings that I don't understand! Above and below the line, what's that? Now I need to Google that, and we all know where that ends. It ends with me three hours later reading up on how photosynthesis works. Thanks a lot mate!
  • 1
    @siljamicke ha! Don't mind me. Sometimes I blab non sense haha!
Add Comment