Electronic Products
Find us here:
  • Books
    • Embedded C Books >
      • cbookfiles
      • cbook2files
      • cbook3files
    • BASIC Books >
      • Programming PICs in BASIC_vol1
      • PICBasic Book Support
      • Basic Atom Book Support
    • Other Books >
      • Arduino Book
      • chipkitbookfiles
  • Chuck's Blog
    • Blog Posts Archive
    • Disclaimer
  • YouTube Channel
  • About Chuck
    • About Chuck
    • Stock Car Racing
  • 3D Printing
    • Fabrikator Mini
  • Getting Started with PICs
    • BASIC Programming
    • C Programming >
      • C Compilers
  • Build Your Own PICKit 2
    • PICkit 2 Starter Kit
  • CHIPINO
    • Shields
  • CHIPAXE Breadboard Modules
  • Understanding Hex Files
  • chipKIT
  • Newsletter Archive
  • Contact
  • Retired Designs
    • BasicBoard
    • Ultimate OEM
    • Maximite BasicBox
    • Maximino
  • Downloads
  • Kickstarter Projects
    • Demo-Shield
  • Great Cow Basic Site
  • Buy Hardware
  • Links I Recommend

Great Cow Basic Assembly Files

2/9/2014

2 Comments

 
One of the features I like most about the Great Cow Basic (GCB) compiler is it produces a pure assembly file. I've mentioned this before in a previous post, but what I didn't know it did until recently, was that it can transfer the BASIC command to the assembly file as a comment.

The picture below shows a screen capture from the MPLAB screen that has a GCB generated file. The Basic command lines show up as comments in green. The assembly code shows up below it.
Picture
It turns out this is just a command line option for the compiler. This feature has been automatically set in the design environment included with the Great Cow Basic download at my Great Cow Basic CHIPINO website. What this

does is make it a great tool for not only programming PICs in BASIC, but also a great tool for learning assembly code. You can write the BASIC command then see the assembly code directly associated with it. This is something I haven't found that works this easy with any other compiler I've used. Not PICBASIC, not HI-TECH C, or any others. So if you want to learn assembly code or at least understand what each BASIC command is doing then I suggest you try out GCB. After all, it's open source and completely free.

2 Comments
viscomjim
2/11/2014 12:49:30 am

This is really cool. Did not know. Just starting with great cow and seems very capable.

Thanks for your work on this.

jim

Reply
Kevin S link
12/20/2020 12:32:05 am

Hi thanks for ssharing this

Reply



Leave a Reply.


    Categories

    All
    3D Printer
    Chipaxe
    Chipino
    Chipkit
    CNC
    Copper Connection
    Dot Matrix
    Elproductsnews
    Expresspcb
    Graphic Lcd
    Great Cow Basic
    Kickstarter
    Lcd Shield
    Makefaire
    Makercase
    Maximite
    Microchip Pic
    Pickit 2
    Pickit 3
    Videos

    Visit previous blog posts in the archives below.

    Archives

    February 2018
    October 2017
    September 2017
    July 2017
    November 2016
    August 2016
    July 2016
    May 2016
    March 2016
    January 2016
    November 2015
    September 2015
    August 2015
    July 2015
    June 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    August 2014
    July 2014
    June 2014
    May 2014
    April 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013
    October 2013
    September 2013
    August 2013
    July 2013
    June 2013
    May 2013
    April 2013
    March 2013
    October 2012
    October 2011

    RSS Feed



    About Chuck

    Chuck has been programming with PIC Microcontrollers since there were only five devices. Now there are over 700 and growing. He also has a lot of fun 3D printing designs using his Davinci 3D printer and TinkerCad software. In this series of blog posts and occasional videos on his YouTube Channel he tries to help you get started with electronics and 3D printing.

    Disclaimer

Powered by Create your own unique website with customizable templates.