Adblock breaks this site

Heyo guys, Assembly?

Discussion in 'Programming General' started by me_person666, Mar 19, 2013.

  1. me_person666

    me_person666 Forum Addict

    Joined:
    Aug 13, 2008
    Posts:
    425
    Referrals:
    0
    Sythe Gold:
    0
    Heyo guys, Assembly?

    Hey,
    So in a couple weeks i start my first programming course. We are doing micro controllers and we are learning something called assembly...

    So first things first, what exactly is assembly? I know its machine code... or something... but other than that i don't know...
    do you guys suggest any readings for me so i can try to get a head start?

    I'm a network tech student. I know cisco IOS.... i know thats not programming, but just thought i should say that...

    Thanks
     
  2. Blupig

    Blupig BEEF TOILET
    $5 USD Donor

    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant
    Heyo guys, Assembly?

    LOL wow, you're in for a treat. Assembly is hard as fuck. It's basically only a couple steps up from binary, which you know as 0101010001001001. You're going to be manipulating a lot of memory to make your shit work.

    I'd honestly recommend googling some books or tutorials and go through the whole thing to get ahead of the class, because if you jump in straight I doubt you'll have a good time. Assembly is definitely not easy.

    Just to give you an idea, the following bit of code prints "Hello World" in a message box (this is for 32 bit Windows):
    Code:
             .486p
             .model  flat,STDCALL
    include  win32.inc
     
    extrn            MessageBoxA:PROC
    extrn            ExitProcess:PROC
     
    .data
     
    HelloWorld db "Hello, world!",0
    msgTitle db "Hello world program",0
     
    .code
    Start:
             push    MB_ICONQUESTION + MB_APPLMODAL + MB_OK
             push    offset msgTitle
             push    offset HelloWorld
             push    0
             call    MessageBoxA
     
             push 0
             call ExitProcess
    ends
    end Start
     
  3. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    Heyo guys, Assembly?

    Blupig's off his rocker. I loved my assembly course. We didn't use a real language and its annoying as fuck and its nearly impossible to find bugs and it will make you rip your hair out but I thought it was quite fun. Just force yourself to do it a lot and it is better.
     
  4. kmjt

    kmjt -.- The nocturnal life chose me -.-
    Banned

    Joined:
    Aug 21, 2009
    Posts:
    14,450
    Referrals:
    8
    Sythe Gold:
    449
    Heyo guys, Assembly?

    I have to take it next year. Good luck us =(
     
  5. me_person666

    me_person666 Forum Addict

    Joined:
    Aug 13, 2008
    Posts:
    425
    Referrals:
    0
    Sythe Gold:
    0
    Heyo guys, Assembly?


    can you recommend any tuts and books?



    If you guys are wondering, this is a course where i build (solder together) a small sumo bot. We have to program it and everything.
     
  6. Laurie

    Laurie
    Retired Sectional Moderator Pirate $50 USD Donor

    Joined:
    Nov 26, 2007
    Posts:
    7,630
    Referrals:
    0
    Sythe Gold:
    1,197
    M
    Two Factor Authentication User SytheSteamer
    Heyo guys, Assembly?

    I learnt TASM at College, writing programs for PIC microcontrollers but i've forgotten alot of the information.
     
  7. PijaVenosa

    PijaVenosa Forum Addict
    $200 USD Donor New

    Joined:
    Oct 16, 2012
    Posts:
    504
    Referrals:
    0
    Sythe Gold:
    824
    Discord Unique ID:
    218731748610015232
    Discord Username:
    Totomi#0070
    Poképedia Pokémon Trainer Tier 1 Prizebox (3)
    Heyo guys, Assembly?

    In assembly, how would the code look if it just printed "Hello World" to the default output stream?
     
< Buying StackOverflow, Antichat, and other good programming/hacking accts | 2 player space invaders (applet) >


 
 
Adblock breaks this site