---
title: "Rawley Amankwah (@rawleyperetz) | Hashnode"
description: "A Curious Mathematician. Read the latest articles by Rawley Amankwah on Hashnode."
url: "https://hashnode.com/@rawleyperetz"
---

@rawleyperetz

# Rawley Amankwah

@rawleyperetz · DE · Joined May 2025

A Curious Mathematician

### [A Faster Way to Think About Factorials](https://baremetal-bytes.hashnode.dev/a-faster-way-to-think-about-factorials?utm_source=hashnode&utm_medium=feed)

How splitting odd and even numbers — and a simple bit shift — can make factorial computation more elegant 1. The Usual Way Most of us first learn to compute the factorial of a number \\(n\\) — written

6 min read · [baremetal-bytes.hashnode.dev](https://baremetal-bytes.hashnode.dev/a-faster-way-to-think-about-factorials?utm_source=hashnode&utm_medium=feed)

[May 21](https://hashnode.com/posts/a-faster-way-to-think-about-factorials/6a0efb6c8b03460221487fc8)

### [Even or Odd? in Nasm x86\_64](https://baremetal-bytes.hashnode.dev/even-or-odd-in-nasm-x8664?utm_source=hashnode&utm_medium=feed)

This mini project determines whether a given input (a command line argument) is even or odd. We begin once again by including our macro file, mymacros.inc, initialized variables and conversion of command line argument to integer (Read more on Working...

3 min read · [baremetal-bytes.hashnode.dev](https://baremetal-bytes.hashnode.dev/even-or-odd-in-nasm-x8664?utm_source=hashnode&utm_medium=feed)

[Dec 10, 2025](https://hashnode.com/posts/even-or-odd-in-nasm-x8664/69392f92d1326107aec4e36d)

### [The Sum of the first n positive integers in Nasm x86\_64](https://baremetal-bytes.hashnode.dev/the-sum-of-the-first-n-positive-integers-in-nasm-x8664?utm_source=hashnode&utm_medium=feed)

In this mini project, we code the sum of the first n integers using Gauss’ formula. Short Preview of Gauss’ formula Say, we need to sum the first 20 positive integers. The sum, S is given as; \\(S = 1+2+3+…+20\\) —————- (1) Note also that the sum can b...

4 min read · [baremetal-bytes.hashnode.dev](https://baremetal-bytes.hashnode.dev/the-sum-of-the-first-n-positive-integers-in-nasm-x8664?utm_source=hashnode&utm_medium=feed)

[Dec 9, 2025](https://hashnode.com/posts/the-sum-of-the-first-n-positive-integers-in-nasm-x8664/6937e502bf2a6fa7c5460f4d)

### [Converting String to Integer in Nasm x86\_64](https://baremetal-bytes.hashnode.dev/converting-string-to-integer-in-nasm-x8664?utm_source=hashnode&utm_medium=feed)

In our previous lesson, we learned about how to get command line arguments. Sometimes, we may want the command line arguments passed to be of type integer instead of string for further computation or processing. Therefore, there is the inherent need ...

2 min read · [baremetal-bytes.hashnode.dev](https://baremetal-bytes.hashnode.dev/converting-string-to-integer-in-nasm-x8664?utm_source=hashnode&utm_medium=feed)

[Oct 31, 2025](https://hashnode.com/posts/converting-string-to-integer-in-nasm-x8664/69043776b51d256cffbc8af4)

### [Working with Command Line Arguments in Nasm x86\_64](https://baremetal-bytes.hashnode.dev/working-with-command-line-arguments-in-nasm-x8664?utm_source=hashnode&utm_medium=feed)

Working with command line arguments in NASM x86\_64 is relatively easy. One only needs to know the value contained in the rsp register to extract command line arguments. That is mov r8, \[rsp\] ; Get the number of command line arguments and move it to r...

2 min read · [baremetal-bytes.hashnode.dev](https://baremetal-bytes.hashnode.dev/working-with-command-line-arguments-in-nasm-x8664?utm_source=hashnode&utm_medium=feed)

[Oct 31, 2025](https://hashnode.com/posts/working-with-command-line-arguments-in-nasm-x8664/6904304b4dd0f7716cd20365)
