Similar Posts

Subscribe
Notify of
13 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
NoHumanBeing
1 year ago
mov [input+esi], al

Most likely ah hot instead al, after all, in the code before you also work with the register ah.

The whole thing is unusually programmed. Actually, I’d like to have some subprogrammes like this call / re- expect (and parameter transfer via the stack instead of simply using the same register, which is of course very “flaky”) and not just conditional jumps.

ohwehohach
1 year ago

Is something wrong in “smallLetter”? Because for capital letters, the code obviously works. What is the code in “smallLetter” supposed to do? And why should ah have exactly the value 10 so that “print” is jumped?

ohwehohach
1 year ago
Reply to  RedDevil1982

ohwehohach
1 year ago
Reply to  RedDevil1982

A < Z < a < z as char in ASCII.

Sure. Just not to the alphabet, but also a few clips and stuff. Therefore, the 32.

ohwehohach
1 year ago

The 32 is simply the difference between A and a in ASCII

YES! I understand! I only remembered that the difference was NOT 32, but 26. But as I wrote 4 comments before, I could find out this within 20 seconds!

That I’ve done any low-level ASCII operations is 20 years ago… Since then, for good reason, I prefer to move into programming languages, where frameworks take off this stuff.

ohwehohach
1 year ago

Well, if, for example, I have ‘b’ as char, then I take off 32 and land at ‘B’ as char.

Yeah, tried it again. That’s right.

ohwehohach
1 year ago

Well, you take 32 off ah, but write back al – could that be your problem?