Click here to Skip to main content
15,390,740 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: From my crossassembler's manual Pin
CodeWraith5-Dec-20 14:09
MemberCodeWraith5-Dec-20 14:09 
GeneralRe: From my crossassembler's manual Pin
trønderen5-Dec-20 16:54
Membertrønderen5-Dec-20 16:54 
GeneralRe: From my crossassembler's manual Pin
CodeWraith5-Dec-20 23:49
MemberCodeWraith5-Dec-20 23:49 
GeneralRe: From my crossassembler's manual Pin
glennPattonWork35-Dec-20 10:24
professionalglennPattonWork35-Dec-20 10:24 
GeneralRe: From my crossassembler's manual Pin
OriginalGriff5-Dec-20 10:50
mveOriginalGriff5-Dec-20 10:50 
GeneralRe: From my crossassembler's manual Pin
glennPattonWork35-Dec-20 10:58
professionalglennPattonWork35-Dec-20 10:58 
GeneralRe: From my crossassembler's manual Pin
CodeWraith5-Dec-20 11:42
MemberCodeWraith5-Dec-20 11:42 
GeneralRe: From my crossassembler's manual Pin
OriginalGriff5-Dec-20 20:20
mveOriginalGriff5-Dec-20 20:20 
It is slower to develop, if only because you have to type more, and have to think more carefully about what you are doing. For example, in C / Z80 code:
C#
for (int i = 0; i < 10; i++)

        PUSH   BC
        LD     B, 10
loop:
        ...
        DJNZ   loop
        POP    BC
And if the iteration count exceeds a byte, you have to think about that as well:
        PUSH   BC
        LD     BC, 1000
loop:
        ...
        DJNZ   loop
        DEC    C
        JP     C, loop
        POP    BC

But on the other hand, you can copy a string or bytes in one instruction:
copy:
        LD     HL, source
        LD     DE, dest
        LD     BC, count
        LDIR
deleteOneChar:
        LD     HL, source+1
        LD     DE, source
        LD     BC, count
        LDIR
And so on.

Don't get me wrong, I still remember my assembler decades with great fondness - but from a general development POV a high level language lets you get a lot more done in a much shorter timescale, and with a much more maintainable result.

But if you have restricted RAM and ROM (and most of mine was done using 4K RAM, 8K ROM) then assembler is the best way to go!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: From my crossassembler's manual Pin
trønderen5-Dec-20 13:40
Membertrønderen5-Dec-20 13:40 
GeneralRe: From my crossassembler's manual Pin
CodeWraith5-Dec-20 14:40
MemberCodeWraith5-Dec-20 14:40 
GeneralRe: From my crossassembler's manual Pin
trønderen5-Dec-20 17:25
Membertrønderen5-Dec-20 17:25 
GeneralRe: From my crossassembler's manual Pin
CodeWraith5-Dec-20 23:21
MemberCodeWraith5-Dec-20 23:21 
GeneralRe: From my crossassembler's manual Pin
trønderen6-Dec-20 8:20
Membertrønderen6-Dec-20 8:20 
GeneralRe: From my crossassembler's manual Pin
CodeWraith6-Dec-20 14:39
MemberCodeWraith6-Dec-20 14:39 
GeneralRe: From my crossassembler's manual Pin
trønderen7-Dec-20 11:28
Membertrønderen7-Dec-20 11:28 
GeneralRe: From my crossassembler's manual Pin
CodeWraith7-Dec-20 13:03
MemberCodeWraith7-Dec-20 13:03 
GeneralRe: From my crossassembler's manual Pin
den2k886-Dec-20 6:05
professionalden2k886-Dec-20 6:05 
GeneralRe: From my crossassembler's manual Pin
trønderen6-Dec-20 8:36
Membertrønderen6-Dec-20 8:36 
GeneralRe: From my crossassembler's manual Pin
den2k886-Dec-20 11:18
professionalden2k886-Dec-20 11:18 
GeneralRe: From my crossassembler's manual Pin
Richard MacCutchan5-Dec-20 21:35
mveRichard MacCutchan5-Dec-20 21:35 
GeneralRe: From my crossassembler's manual Pin
CodeWraith5-Dec-20 23:29
MemberCodeWraith5-Dec-20 23:29 
GeneralRe: From my crossassembler's manual Pin
Richard MacCutchan6-Dec-20 1:25
mveRichard MacCutchan6-Dec-20 1:25 
GeneralRe: From my crossassembler's manual Pin
dandy726-Dec-20 3:24
Memberdandy726-Dec-20 3:24 
GeneralRe: From my crossassembler's manual Pin
CodeWraith6-Dec-20 3:54
MemberCodeWraith6-Dec-20 3:54 
GeneralRe: From my crossassembler's manual Pin
dandy727-Dec-20 9:24
Memberdandy727-Dec-20 9:24 

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.


Straw Poll

Do you feel you fully understand the vision and purpose of the software project you're working on?
Sure you can be told the "what", but do you have the "why"?
  Results   152 votes