Coding assembly on Mac

http://images.forstudent.com/is/34screen.jpg
Hi... I'm a university student and my current subject is about x86 intel Assembly. The teacher provides the Assembly compiler and debugger for us and they run nice on the editplus source code editor but it will only run on PC platform. Try to see the link above. I would like to write, compile and debug x86 assembly codes on my MBP. Is there any way to do that ? I hope we can also do this on MAC. I hate calling all the compilers and writing down all my codes on the Terminal also so, I'm gonna need an assembly compiler that comes with a source code editor. Any help would be appreciated
Andy

EW Vista Yucky.
The answer to your question is yes and no at the same time. You cannont natively Compile (since this is assembly code its assemble) x86 code with nasm on the OSX side of things. This is mainly because there is not an assembler for mac, but there is a way to do this. This is basically what I did last semester in my x86 class. I got a copy of Parallels and XP from the compsci dept at the university (just the windows i had to buy Parallels) and installed all my x86 stuff there. That way if you have something you are using in class its the same for your mac. As far as an assembler with an ide i think you are out of luck we always used notepad then compiled with a bat file. So basically you would just have to set your bat file to point at your .asm file and have one for a full compile and one for a debug so you can do both.
If you do not know bat files are easy to make just open notepad and when you save just move the box at the bottom to all files and name it *.bat.
I hope this helps
Tom

Similar Messages

  • Help? Learning coding for iOS/Mac

    Hello,
    I want to start learning coding, primarily for iOS and Mac applications. I know my way around computers pretty well, but as of now, I have essentially zero knowledge of coding. My question is, how should I start? What language do I learn first? Is iOS or Mac OS a better starting point? etc.
    Any help and advice is greatly appreciated. Thanks!

    What do you want to build for? That's the first question you should ask.
    Building for iOS essentially requires you to learn Obj-C, which hopefully you know is a superset of C. Building for iOS also requires knowledge of other tools, such as Cocoa, a framework built by Apple. Additionally, you should be familiar or be prepared to be familiar with XCode, Apple's IDE. You'll also need to review guidelines for publishing to the iOS App Store.
    Building for Mac can be done in many, many ways. You can distribute Mac applications yourself in almost any language you want, such as Java, C, C#, Ruby, Python, etc. All have IDE's (IIRC) that work with OS X. If you want to build for the Mac App Store, (IIRC) most apps are in Obj-C, and have stringent requirements like that of the iOS App Store.
    Keep in mind, I've barely scratched the surface here. There's a lot more to development than just langauges, frameworks, classes, IDE's, etc. While both iOS and Mac have their own program (at $99/year), you may find that you may not want anything to do with coding, or may want to build for both.
    You mention that you don't have any coding experience. If I were you, I would take very gradual steps, to see if this is something you want to get serious about. There's nothing wrong with diving right into a langauge like C, but you may feel overwhelmed. I plan on building iOS apps myself, but I didn't dive right in. I started learning Javascript two years ago (as well as HTML and CSS), and progressed to a bit of Java and Python. This summer, I plan on learning PHP and RegEx. So, two years in, and I don't feel ready to build with C just yet. However, people learn differently, so heck, you might even start building in 3 months.
    TL;DR, give it a shot. You have nothing to lose. If you want to dive right in, start with C. Being verbose with that language will give you the upper hand when it comes to Obj-C.

  • Region Coding limit prevents Mac owners traveling abroad from using DVD

    I have a friend from the US that travels, works and lives in the US and UK. She has a current Macbook and when she is in London, a DVD bought there brings up the 'Set DVD region' message. This tells her she can only change the region code 5 times before it is stuck on the last one.
    This is truly dumb. Windows doesn't do this and she just 'switched' to Mac, not knowing that the Macbook was so limited.
    Is it possible to ask Apple for a software or firmware fix so that a Macbook owner that travels internationally can actually use legitimately purchased regionally coded DVDs without their Macbook going toast?

    you've posted in the iDVD section of this board, which is an iLife app to create 'homebrewn' DVDs.. not the DVDplayer app.-..
    ... This is truly dumb. .. Is it possible to ask Apple for a software or firmware fix so that ...
    ask the Movie Making Industry to get rid of region-coding.. an 'out of the box' Windows has the same limitations, but for sure, there're zillions of 'hacks' which override that protection.. illegally, just to mention that.

  • Assembly language on Mac OS X

    I just purchased two books. The first is called "Write Great Code -- Volume 1: Understanding the Machine". It is not about assembly language in specific, just about understanding how computers work on a low level. The other is called "Assembly Language: Step-by-Step" by Jeff Duntemann. I've only read the introduction. It teaches assembly language for Intel-based computers (that's me!), but it also says that it's for DOS and Linux. However, I believe that the reason it says this is because it teaches using the NASM assembler, which, at the time this second edition of the book was published, was only available for DOS and Linux. However, they now have a Mac OS X version of NASM, and I've download it. So, here are my questions:
    1.) Given the information I just gave about this book, I want to make sure that the information and code in it will apply to Mac OS X. It certainly sounds like it will, and I understand that there may be minor differences, but I just want to make sure that I'm in the right ballpark here by using this book.
    2.) Since it teaches NASM, I'm assuming that NASM was the right assembler for me to download. I also just wanted to check and see if there's any other tools I should be downloading. The book mentions a NASM-IDE, but says that it's for DOS only. Is there anything else like this (or anything else at all) that I should obtain?
    3.) Does NASM need to be installed? I went to the NASM website and downloaded the newest version (2.08rc1) for Mac OS X, and it unzipped in my Downloads folder. I've opened the folder and it's a bunch of files that I can't recognize (no install or app files in other words -- just files like rdf2bin, rdf2com, idrdf, and so forth). Is there anything else I need to do? Should I move this folder somewhere? What else do I need to do to get started here? Where would I write my code? How would I run the code? As of right now I have no idea where to go from here, and as you can tell I know nothing about how all this works. Maybe the book will tell me more when I get to the first code sample in the book, but it doesn't look like it, so I just wanted to ask for any information that anyone has time to give about anything relating to getting starting with assembly language and NASM on Mac OS X.
    Thanks in advance for any help. I'd love to hear any input or recommendations on this subject, since it's something I really know nothing about, but you gotta start somewhere!

    Okay, so I found a site to guide me through the installation of NASM on Mac OS X, and it said that 2.08rc1 is a "release candidate" (thus the "rc" part -- yeah, I'm not too sharp), and that I should have downloaded the newest version that didn't have "rc" in it, so I went back and downloaded 2.07. Unlike with 2.08rc1, there wasn't a folder on the website for a Mac OS X version, just DOS and Linux and Win32 and whatnot, but the site that was guiding me said to download the file called nasm-2.07.tar.bz2 (or something like that), so that's what I did. It then gave me instructions for configuring and installing NASM via the terminal, and it worked great! I've compiled and installed NASM, so I've gotten that far, but the rest of my questions in the previous post still apply. For example, I still want to make sure the book I bought will be applicable to assembly language on Mac OS X. Also, I'd like to know if there is anything else (like the NASM-IDE I mentioned in the above post) that I should download. And, finally, I still don't know where to go from here to get started with coding assembly language (I mean, for example, I think I read in my book that you write the code in a text editor -- is that right? How's that work?). Any further input on any of this or anything from the previous post above would be greatly appreciated. Thanks!

  • Advice Needed for Coding FCP Plugin's

    This will be my first attempt at coding anything for FCP and I am hoping to get some advice on how to proceed and where I can get technical information.
    Project 1: Create a plugin to add a selection to the Canvas/Viewer Overlay windows - just under "Show TimeCode Overlays", or there abouts. The option will allow the visual display of the embedded DV Date/Time stamp on the tape, in the same fashion as Time-code is overlaid. As far as I have been able to find, this plugin does not exist yet, so I thought I would give it a shot.
    Project 2: Create a plugin to enhance "DV Start/Stop Detect" to label markers with the embedded DV Date/Time code. i.e. Instead of "Segment 1" the marker would be labeled "20070131 19:15:45", assuming of course, a valid date/time existed, otherwise default back to "Segment xx".
    But, I guess my first question would be, would these be "legal" projects to pursue. i.e. Is there an API to modify the functionality of FCP in this manner?
    I know the DT is available as CatDV has no problem reading it, so I figure FCP should be able to as well.
    I figure I will need:
    1. Info on how the DT is encoded (hex) in the stream
    2. FCP API info
    3. Editing app to put the code together.
    4. Forums that deal with Mac and FCP coding discussions.
    5. Any other advice ANY ONE would like to give.
    I have a BSc in Comp Sci and coded on the Main Frame for 15 years, so I have "basic" coding skills, but I have not coded on the Mac yet. I have registered for the FREE Developer Account, but haven't had a chance to explored the service yet.
    Any help or suggestions would be greatly appreciated!
    ASIDE: I have been editing in FCP since v1 and I shoot events with multiple cameras, sometimes hiring additional cameramen (with their own gear). Because, the events I shoot are usually live "one-of" events like weddings, sports... etc, there is a lot of ON/OFF recording. As such, I find the best way to sync up tapes is to match up Date/Time codes. I accomplish this by playing back the captured video through Firewire back to a Panasonic PV-GS400 which displays the DT on the pop-out display. I then MANUALLY update the previously created "DV Start/Stop Detect" segments with the appropriate DT.
    This is a very time consuming process, and if I can get FCP to display the DT directly, it would knock hours off my work flow.
    I hope this all makes sense.
    FYI I will also be posting this in the 2-pop forums, so if I get any advice there, I will update my post here.
    TIA
    Gary

    Hi Gary
    Regarding both your proposed projects afaik there is no API to directly allow you to do this.
    However a few options spring to mind: analyzing midi control /mackie control data as provided to a control surface (check out Digital Heaven's BigTime for an idea of how this could work); similarly you could create a virtual DV output device that would appear in the external video outputs list whereby the output video stream would be passed through your code to extract and display the info; perhaps simplest although the least dynamic would be simply to write an FxPlug filter that could be dropped on the clip ... the user could then populate the filter with static display data by manually scavenging the clip for the info with a "button" in your filter (see the options dialog example in the FxPlug SDK)
    Good luck
    Andy

  • Coding to move from one site to specific part of another site?

    Forgive if I am not explaining this very well- here goes. I have one major site with three other gallery sites that are related. From one of the gallery sites I need to create a button that takes you back to a specific page on the major site. Playing with the coding has not resolved the issue so appreciate any help in finding magic:
    on (press) {
        getURL("http://www.client's main site.net","_blank");
    gets me back to the beginning of the major site but I need to get to a certain page within the site. Is this possible? Thank you! All coding is AS2, Mac platfom, FlashCS5.

    if you want to load frame 22, use:
    on(press){
    getURL("http://www.yoururl.com/page.html?framenum=+22","_blank");
    then within the head tags of page.html in yoururl.com, use:
    <script type="text/javascript">
    function urlF(){
    return location.href;
    </script>
    and in the swf that's embedded by page.html, add the following to frame 1:
    import flash.external.ExternalInterface;
    stop();
    trace(ExternalInterface.call("urlF"));
    //  upload that to your server, post the url to the flash containing the getURL() and indicate which button needs to be pressed.

  • Pple 24" LED and Mac Pro usb connection problem

    Hi,
    I'm having issues with my Mac Pro 8 core (2008) connected to an Apple 24" LED. I have a Radeon HD 4870 graphics card installed in the Mac so I can use the Apple LED  mini displayport connection. The video works perfectly fine but to use the built-in speakers and iSight in the Apple LED I have to use the USB cables and connect them to the USB sockets of the Mac Pro. This is where the problem seems to be as after a time using the Mac it crashes in a strange manner and I get a few lines of coding and the Mac shuts down on its own. I've used Dr Botts extension cables to extend to reach of the USB cables which I thought maybe the issues and taken this off and I've also unplugged any devices plugged into the extra USB sockets on the Apple LED. I think it's something to do with using the speakers as playing video seems to crash the Mac also but once I unplug the USB cables the video plays fine, but without speaker sound. Has anyone had similar problems and have any solutions?
    Thanks in advance.
    Alec

    I have had no problem at all.
    Assume  you have considered: http://support.apple.com/kb/TS2400
    If you have concerns about possible extension cable reliablity, you might want to consider trying a spare such as this one that is available from the Store: http://store.apple.com/us/product/H6730LL/A/
    Mac Pro Quad Core (Early09) 2.93Ghz OSX 10.7.2   24" LED Cinema Display

  • Windows games on Mac?

    hi.
    is there a free way to run a Windows game on a Mac (.exe file, of course)?

    I used a WINE based program to try to run windows games on my Mac, but it wasn't named DarWine.. it was under a different name.. thing is, that it never was able to run a single game I tried.. it really only works for the most part with the applications they list as tested.. most or all of which are not games... Your only and best bet for gaming is (on Intel Macs) to install Windows XP using Apple's free BootCamp software, OR to use a PC emulator to install any version of Windows. I'm not sure if any of the PC emulators are now coded for Intel Macs, but if they aren't, they should still run under Rosetta. The problem with that is they will crawl because you're emulating an Intel PC under an emulator emulating a PowerPC processor on Intel... Why bother? Just use BootCamp.
    BETTER OPTION FOR INTEL: Use Parallels software (commercial/store-bought) to install and run WIndows simultaneously with MacOS.. no BootCamp or partitioning of drives is required.

  • Does run Mac OS X from external disk will damage Win7 installed at internal disk?

    Hi,
    When I buy a Mac Mini Server 2011, I replace the Mac OS X Lion bootable disk with a SSD and install Win7 64, the other internal disk is also used by windows.
    Now I need write some code in Mac OS using XCode, I assembling the Mac OS X Lion bootable disk with a USB disk shell and plug in Mac Mini's USB port, when I power on the machine and press the ALT key, the firmware show the Max OS disk, but I stoped.
    I want to know if I boot into Mac OS, will it damage the Win7 disk? Can I apply OS patch or upgrade firmware?
    Thanks in advance!

    Does run Mac OS X from external disk will damage Win7 installed at internal disk?
    Of course not.  Why would it?

  • Same apple id

    Help I make a mistake by using my wife's apple Id my wife has tried to great me an account but every time she put my email in in says email already in use what can I do so my wife and me have separate accounts

    HI,
    Historically Apple allowed people to create @mac.com Apple IDs
    There was a registration page for this separate from the MobileMe registration page and it was listed an "iChat Name page"
    To register you HAD to list another email that was external to Apple.
    Most used their ISP one or a Google, Yahoo or MSN one.
    This basically "Hard Coded" the new @mac.com name to the Verifying/Recovery email that had been used.
    Prior to MobileMe the @mac.com email were issued under the preceding .Mac service.
    Basically if you paid for a MobileMe account you did the same thing in listing an external email that was then "Hard Linked" to the MobileMe @me.com name your recaived.
    You could not use an existing Apple ID to create an @mac.com or an @me.com Apple ID.
    This includes those cases where you have used your external email as the Apple ID.
    This has also continued into the iCloud registrations.
    Those people paying for MobileMe were encouraged to Convert their existing @me.com ones to iCloud.
    Some who had external emails as Apple IDs also converted to iCloud - initailly gaining an iCloud issued @me.com ID and later an @icloud.com ID
    Creating a new account followed the @mac.com example by hard coding or linking the external email to the Apple/iCloud ID.
    Examples.
    Lets says we have a Google email account called "[email protected]"
    You could register this directly as an Apple ID.  ([email protected])
    You could link it to an Apple Issued iCloud ID.  (You get [email protected] and [email protected] is the hard linked verifying email)
    In both cases you cannot create another Apple ID.
    The first because it is already an Apple ID and you can't use one to create another.
    In the second option it is the Recovery and Verifying email and this also cannot be used to create another Apple ID.
    You can remove the "Primary Email" as it is called on your Apple ID  page
    You could just use a different email to support/Create the new Apple ID.
    7:57 PM      Thursday; May 9, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Problem with Safari 5.0.6 on OSX 10.5.8

    My wife has an old Powerbook(non-Intel) running under 10.5.8. She uses it only for eMail and eBay using Safari 5.0.6. If she finds something to buy on eBay when she gets to the payment page a message appears saying that a slow script is running preventing access to the webpage and offering the choice of closing down the script or letting it continue. Whichever option she chooses the message window disappears then reappears again, meanwhile Safari locks and has to be Force Quit. I managed to find an old version of Firefox which will run on the machine but we get the same message on eBay. I have spoken to eBay who ran some tests and say it has nothing to do with their website. I have cleared everything off Safari but the problem has reappeared. Has anyone experienced this?Does anyone have any suggestions?

    Consider TenFourFox. It is a port of a later version of FireFox that was never coded for PowerPC Macs. Sites see it as a fairly recent version of FireFox. What TFF does not fix is web video content that was never optimized for PowerPC, and the current version of TFF does not suport plug-ins so Flash video is out.
    http://www.floodgap.com/software/tenfourfox/
    I'm using it on a G4 MDD 1.25Ghz minitower with architecture similar later PowerBooks and it keeps that computer on the web for many tasks. It has become the "go to" browser for most people here who still like to use their pre-Intel Macs.

  • Replaced an asset and now project won't open

    I was finishing up some subtitles when I noticed an audio problem that needed to be corrected.
    So I saved my DVDSP4 project, quit the program, then made a quick audio cut in FCP. The amount of audio cut was less than a second. And because I cut my audio, I had to make a cut in my video.
    Then I exported using Compressor (DVD Best Quality - 90 mins). I saved over the original asset, figuring I could save some time and have DVDSP automatically update the altered asset.
    That was my mistake. I've spent the better part of two days adding subtitles to this project, and now the frigging thing won't open.
    When I opened the DVDSP project file, all my windows are missing excpect for the Palette and Inspector windows. The majority of menu options from the menu bar couldn't be accessed.
    However, when I open DVDSP from my dock, it opens up, all the windows are there, and the menu bar is fully functional. When I try to open the project file I've been working on using File>Open and File>Open Recent, I lose my windows and functionality.
    Any suggestions as to correct the problem?
    Quad G5, Coded Named: Mistress   Mac OS X (10.4.5)  

    If Houghts' suggestion doesn't clear the problem initially, you could try going back a stage (in FCP).
    First make a copy of your new .m2v & sound files with a different name, and also the DVD SP project.
    Next open the edited film in FCP. Assuming you have the sequence for the previous edit, redo the playout with the same settings and name you that had originally, and without the one second cut. Overwrite the originally named files with these. Exit FCP. Delete all the PAR files and prefs for DVD SP again, as per Houghts above.
    Now try opening your project - since the assets referred to are the same length as before, there's a chance that DVD SP won't get confused, and will re-link to them.
    If it opens, you are back on track and can import the new versions, replace, then delete, as per Houghts above.

  • PowerMac G5 will ONLY boot up when the side panel is removed

    Hi,
    We have a PowerMac G5 Dual 2.5GHZ . This mac will ONLY boot up when the side panel and the clear plastic panel are removed. If the Mac is assembled, the Mac will start and Chime, but thats it. No display and the fans are dead quite. Any Suggestions? Thanks in advance

    Hi, I realised that this problem has ONLY occured AFTER I installed Leopard. I then reformated the hard drive and installed 10.34 ( the OS that came with the G5) and it is as good as gold. I then reformated the hard drive and installed Leopard. After a few minutes the G5 became noisy and unstable. I then reformatted the hard drive AGAIN and reinstalled 10.34 and it stable. How can I install Leopard without the machine behaving erratic? Thanks for any advice in advance

  • A Mighty Mouse and a Mighty 1 year Old Clash

    I've got a mouse question about, uh, the Mighty Mouse (the one that allows has five buttons, and a scroll dot. it was included in my quad purchase a couple of months back).
    My one year old son likes the red light underneath my mouse, and will try to grab it any chance he gets. One of these times, he was successful, and proceeded to bat the mouse around while playing Beethoven's 5th Symphany on my keyboard (or at least it looked like that).
    After reclaiming my mac station, and renaming a couple of files he changed, I checked out my mouse.
    The mouse works fine, except for one thing. I can't use the scroll function on the mouse. I can use the primary and secondary buttons, the side buttons, and even bring up Expose, but the scroll function has ceased. (Funny thing though, it will scroll if I use the Netscape browser... yuck).
    Is there something I've overlooked to bring the scroll function back?
    Thanks!
    Quad G5, Coded Named: Mistress   Mac OS X (10.4.5)  

    I've had a 1 year old, a keyboard, and mouse clash, but never with such fatal consequences.
    The MM scroll function is a little delicate IMHO. When new Apple products come out, there is almost always a tear down article on SlashDot or Ars Technica. Sometimes they even get stuff back together, so you may search for such an article, but I wouldn't put much faith in a solution.
    The MM might be covered under your computers warrenty, if you want to go that route; I would leave 1 year old home when youu visit the store with mouse in hand.
    Good luck.
    PowerMac G5 1.6GHz   Mac OS X (10.4.5)  

  • Website shopping basket cookies Problem With Safari only

    My website shopping basket uses cookies and works find in all browsers except Safari, I have traced the problem to the £ sign, if the £ is present in the items description with I can't add the product, if I leave the £ out or use $ it all works fine, has anyone seen this problem before

    Consider TenFourFox. It is a port of a later version of FireFox that was never coded for PowerPC Macs. Sites see it as a fairly recent version of FireFox. What TFF does not fix is web video content that was never optimized for PowerPC, and the current version of TFF does not suport plug-ins so Flash video is out.
    http://www.floodgap.com/software/tenfourfox/
    I'm using it on a G4 MDD 1.25Ghz minitower with architecture similar later PowerBooks and it keeps that computer on the web for many tasks. It has become the "go to" browser for most people here who still like to use their pre-Intel Macs.

Maybe you are looking for

  • Assigning authorization to status in cFolder status profile

    Working with cFolders, I've written a function module that creates a status profile with statuses for use in a collaboration.  The status profile, several statuses and status transitions are being successfully created.  I am adding user group and rol

  • When i connect my ipad2 64 gb to power its getting restarted again and again any one have any solutions???

    when i connect my ipad2 64 gb to power its getting restarted again and again any one have any solutions???

  • Exporting Cystal Reports into CSV format

    Hi, I wanted to export some reports in CSV format with following options checked in Crystal 2008: These options are given under separated Values exports options: 1. Mode = Standard Mode 2. Isolate Report/Page sections and Isolate Group Scctions check

  • Unable to send mail to Lotus Mail

    Hi, I tried to send mails from SAP to Lotus Mail and failed. In SCOT, the SAPCONNECT parameters for the node I am using are: Node: SMTP Max Waiting TIme: 30 min Node In Use: Checked Mail Host: w2kdev01 Mail Port: 25. Internet: Checked During troubles

  • Japanese hotmail

    I've got an issue with cfmail japanese encoding with registered japanese hotmail accounts. My cfmail comes up garbled in these type account, but the proper japanese character comes out fine in other mail formats. Can anyone explain to me what is goin