Announcement

Collapse
No announcement yet.

Assembly references for simple functions?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Assembly references for simple functions?

    Does anybody have any good references for mixing asm with basic in PB? I dont want to get heavily into assembly as such, but there are some relatively simple (well, in basic things such as general maths (add, take, multiply) and string functions (concatenate, trim, etc) that i'd like to learn how to do in assembly for performance reasons
    Looking in the PB documentation at the ASM keyword, this part actually somehow made sense to me:
    ! mov AL,"a" ; move character a into register AL
    ! mov AX, "ab" ; move characters ab into register AX ("a" into AL and "b" into AH)
    ! mov EAX, "abcd" ; move characters abcd into register EAX
    so im eager to hammer it out - any good references anyone?



    ------------------
    -

  • #2
    Check the Files section here for assorted example code.

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Comment


    • #3
      This is probably the best place to start: http://www.pbq.com.au/home/hutch/

      Also search for anything by Hutch in the forums.

      Brent...

      ------------------

      Comment


      • #4
        Tom, Brent, many thanks :-)
        (searching for *hutch* seemed to yield better results than searching for *asm*, go figure ...


        ------------------
        -

        Comment

        Working...
        X