Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gwens committed Jul 14, 2017
0 parents commit e8f9333
Show file tree
Hide file tree
Showing 417 changed files with 7,879 additions and 0 deletions.
Binary file added 9781484224021.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions Contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Contributing to Apress Source Code

Copyright for Apress source code belongs to the author(s). However, under fair use you are encouraged to fork and contribute minor corrections and updates for the benefit of the author(s) and other readers.

## How to Contribute

1. Make sure you have a GitHub account.
2. Fork the repository for the relevant book.
3. Create a new branch on which to make your change, e.g.
`git checkout -b my_code_contribution`
4. Commit your change. Include a commit message describing the correction. Please note that if your commit message is not clear, the correction will not be accepted.
5. Submit a pull request.

Thank you for your contribution!
27 changes: 27 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Freeware License, some rights reserved

Copyright (c) 2017 Igor Zhirkov

Permission is hereby granted, free of charge, to anyone obtaining a copy
of this software and associated documentation files (the "Software"),
to work with the Software within the limits of freeware distribution and fair use.
This includes the rights to use, copy, and modify the Software for personal use.
Users are also allowed and encouraged to submit corrections and modifications
to the Software for the benefit of other users.

It is not allowed to reuse, modify, or redistribute the Software for
commercial use in any way, or for a user’s educational materials such as books
or blog articles without prior permission from the copyright holder.

The above copyright notice and this permission notice need to be included
in all copies or substantial portions of the software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS OR APRESS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Apress Source Code

This repository accompanies [*Low-Level Programming*](http://www.apress.com/9781484224021) by Igor Zhirkov (Apress, 2017).

[comment]: #cover
![Cover image](9781484224021.jpg)

Download the files as a zip using the green button, or clone the repository to your machine using Git.

## Releases

Release v1.0 corresponds to the code in the published book, without corrections or updates.

## Contributions

See the file Contributing.md for more information on how you can contribute to this repository.
61 changes: 61 additions & 0 deletions assignments/1_io_library/stud/lib.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
section .text

string_length:
xor rax, rax
ret

print_string:
xor rax, rax
ret


print_char:
xor rax, rax
ret

print_newline:
xor rax, rax
ret


print_uint:
xor rax, rax
ret


print_int:
xor rax, rax
ret

string_equals:
xor rax, rax
ret


read_char:
xor rax, rax
ret

section .data
word_buffer times 256 db 0

section .text

read_word:
ret

; rdi points to a string
; returns rax: number, rdx : length
parse_uint:
xor rax, rax
ret

; rdi points to a string
; returns rax: number, rdx : length
parse_int:
xor rax, rax
ret


string_copy:
ret
Loading

0 comments on commit e8f9333

Please sign in to comment.