Author Topic: How run a Masm program on a 64-bit Windows 8? (newbie)  (Read 27340 times)

nidud

  • Member
  • *****
  • Posts: 1735
    • https://github.com/nidud/asmc
Re: How run a Masm program on a 64-bit Windows 8? (newbie)
« Reply #15 on: September 28, 2013, 04:27:15 AM »
the file Irvine32.inc is missing, so you need to create that to  :biggrin:
I will guess that this file is in the book as well somewhere

jj2007

  • Member
  • *****
  • Posts: 9686
  • Assembler is fun ;-)
    • MasmBasic
Re: How run a Masm program on a 64-bit Windows 8? (newbie)
« Reply #16 on: September 28, 2013, 05:04:05 AM »
Yes, Irvine32.inc must be in the path. In case you can't find it, here is a workaround:
include \masm32\MasmBasic\MasmBasic.inc                  ; download
include \masm32\MasmBasic\IrvineMb\Irvine32Mb.inc        ; needed to build Irvine's (many but not all) 32-bit examples
.data
string_1 BYTE "abcde////",0

...
Works like a charm (except for trim_string, which does not trim anything ::)):
string_1 after trimming: abcde////
string_1 in upper case: ABCDE////
string_2 is less than string_1
Length of string_2 is 5


For the exact commandline, see reply #10. It's 32-bit code.

dedndave

  • Member
  • *****
  • Posts: 8823
  • Still using Abacus 2.0
    • DednDave
Re: How run a Masm program on a 64-bit Windows 8? (newbie)
« Reply #17 on: September 28, 2013, 05:31:35 AM »
yes - you need the Irvine libraries, if you want to follow the book

personally, i would put the book back on the shelf, and install the masm32 package - lol
there are plenty of examples, help files, and tutorials
and - the forum members are helpful if you have questions

one problem with Kip's books is that he doesn't follow the intel/ms ABI
(which registers to preserve, how to pass arguments and return results)

Kenny_007

  • Guest
Re: How run a Masm program on a 64-bit Windows 8? (newbie)
« Reply #18 on: September 28, 2013, 06:00:34 AM »
II've not actually started delving into the book by Kip Irvine, but I really want a firm foundation for learning assembly. I know of the Art of Assembly but apparently that only teaches you high level assembly, so are there other good books where I can learn x86 assembly programming if the one i'm reading isn't too good?

Kenny_007

  • Guest
Re: How run a Masm program on a 64-bit Windows 8? (newbie)
« Reply #19 on: September 28, 2013, 06:07:10 AM »
how did you guys learn it

GoneFishing

  • Member
  • *****
  • Posts: 1071
  • Gone fishing
Re: How run a Masm program on a 64-bit Windows 8? (newbie)
« Reply #20 on: September 28, 2013, 06:16:25 AM »
masm32 package is a good starting point ( see reply #17)  :t