I have to make a program in assembly language that will count the space between two letters in the alphabet. So A to D is 2 in between. I'm killing myself here lmao.
wouldnt you buiild a database of each letter and give it a value (1,2,3,etc) and just do = A - Z = 25 or some s***.
Not sure what low level language you’re using, but one thing that may help is thinking about how chars are represented.
Like in C where you can get the ascii value of a char by subtracting ‘a’, it would definitely be easy to find the difference between two chars if you could subtract them
Maybe you can take inspiration from a more known exercise, such as the caesar cipher? It plays with a very similar concept.
github.com/vnteles/AssemblyX86-CaesarCipher/blob/master/caesar_cipher.asm
Maybe you can take inspiration from a more known exercise, such as the caesar cipher? It plays with a very similar concept.
https://github.com/vnteles/AssemblyX86-CaesarCipher/blob/master/caesar_cipher.asm
I need to be better at this
I need to be better at this
At what precisely? I’m not good at assembly either, but I know what kind of resources I need to progress.
At what precisely? I’m not good at assembly either, but I know what kind of resources I need to progress.
Just programming in general. I was doing okay taking python classes in college but fell off shortly after
Just programming in general. I was doing okay taking python classes in college but fell off shortly after
I’m sure you’re able to pick it up again and improve! There are a bunch of good online courses that you can follow to get knowledge, such as cs50. Have a look at it, if you like! :)