Announcement

Collapse
No announcement yet.

Assembly references for simple functions?

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

  • Wayne Diamond
    replied
    Tom, Brent, many thanks
    (searching for *hutch* seemed to yield better results than searching for *asm*, go figure ...


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

    Leave a comment:


  • Brent Eldstrom
    Guest replied
    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...

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

    Leave a comment:


  • Tom Hanlin
    replied
    Check the Files section here for assorted example code.

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

    Leave a comment:


  • Wayne Diamond
    started a topic Assembly references for simple functions?

    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?



    ------------------
Working...
X