Skip to content

A small ARM assembly app to manage the warehouse of a tech store

License

Notifications You must be signed in to change notification settings

bytestrick/bit-a-bit-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bit-a-Bit Store

Group 14's project submission for the Computer Architecture course at Unical (A.A. 2022/23).

The app is written in ARM assembly, but calls some functions from libc.

Demo of the terminal user interface

Compile and run the app

On GNU/Linux x86_64 you need aarch64-linux-gnu-gcc (both Arch and Debian) e qemu-user-binfmt (Debian) or qemu-user (Arch), then run:

make run

The app

At startup the user is presented a table and an action prompt. The rows of the table represent products of a tech store, each one described by some fields.

The data are stored in a file entries.dat. The actions that can be performed on the data are:

  • add a new product, typing each field from the terminal
  • remove a product based on its position
  • filter the products
    • by price (between to price extremes)
    • by type
  • swap two products based on their position
  • remove the first product with the same price as the one following it
  • swap the first two products not sorted in increasing order for the stocks field
  • sort the whole table by stocks in increasing order
  • compute the floating point average of the products prices.