tduehr-ragweed 0.1.7.1 → 0.1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,7 +1,11 @@
1
- == 0.1.7.1 / 2009-08-03
1
+ == 0.1.7.2 / 2009-09-21
2
+
3
+ * fixed Sub and Add in Rasm correctly. added Leave instruction
4
+
5
+ == 0.1.7.1 / 2009-09-20
2
6
 
3
7
  * added Rasm::Subl to avoid conflict in Bblock with Kernel#sub
4
- * setup for call tramolines in osx
8
+ * setup for call trampolines in osx
5
9
 
6
10
  == 0.1.7 / 2009-08-03
7
11
 
data/lib/ragweed.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  module Ragweed
3
3
 
4
4
  # :stopdoc:
5
- VERSION = '0.1.7.1'
5
+ VERSION = '0.1.7.2'
6
6
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
7
7
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
8
8
  # :startdoc:
data/lib/ragweed/rasm.rb CHANGED
@@ -5,7 +5,7 @@ module Ragweed; end
5
5
  module Ragweed::Rasm
6
6
 
7
7
  # :stopdoc:
8
- VERSION = '0.1.7.1'
8
+ VERSION = '0.1.7.2'
9
9
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
10
10
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
11
11
  # :startdoc:
@@ -22,7 +22,7 @@ module Ragweed::Rasm
22
22
 
23
23
  # Append more instructions to a previously created block;
24
24
  # see Bblock#make
25
- def add(&block)
25
+ def append(&block)
26
26
  instance_eval(&block)
27
27
  end
28
28
 
@@ -52,6 +52,11 @@ module Ragweed::Rasm
52
52
  c
53
53
  end
54
54
 
55
+ # method to fix collision with Kernel#sub properly
56
+ def sub(*args)
57
+ Ragweed::Rasm::Sub.new(*args)
58
+ end
59
+
55
60
  def method_missing(meth, *args)
56
61
  k = Ragweed::Rasm.const_get(meth.to_s.capitalize)
57
62
 
@@ -347,7 +347,7 @@ module Ragweed::Rasm
347
347
  row = 4
348
348
  end
349
349
 
350
- pp [col,row,sbase]
350
+ # pp [col,row,sbase]
351
351
 
352
352
  sibpart = sbase + (row << 3) + (col)
353
353
 
@@ -544,6 +544,17 @@ module Ragweed::Rasm
544
544
 
545
545
  ## ------------------------------------------------------------------------
546
546
 
547
+ # Leave
548
+ class Leave < Instruction
549
+ # c9
550
+
551
+ def to_s
552
+ add(0xc9)
553
+ end
554
+ end
555
+
556
+ ## ------------------------------------------------------------------------
557
+
547
558
  # Wrapper class for arithmatic instructions. Never called directly;
548
559
  # see below.
549
560
  class Arith < Instruction
@@ -5,7 +5,7 @@ module Ragweed; end
5
5
  module Ragweed::Wrap32
6
6
 
7
7
  # :stopdoc:
8
- VERSION = '0.1.7.1'
8
+ VERSION = '0.1.7.2'
9
9
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
10
10
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
11
11
  # :startdoc:
@@ -5,7 +5,7 @@ module Ragweed; end
5
5
  module Ragweed::Wraposx
6
6
 
7
7
  # :stopdoc:
8
- VERSION = '0.1.7.1'
8
+ VERSION = '0.1.7.2'
9
9
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
10
10
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
11
11
  # :startdoc:
@@ -5,7 +5,7 @@ module Ragweed; end
5
5
  module Ragweed::Wraptux
6
6
 
7
7
  # :stopdoc:
8
- VERSION = '0.1.7.1'
8
+ VERSION = '0.1.7.2'
9
9
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
10
10
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
11
11
  # :startdoc:
data/ragweed.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ragweed}
5
- s.version = "0.1.7.1"
5
+ s.version = "0.1.7.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["tduehr, tqbf, struct"]
9
- s.date = %q{2009-09-20}
9
+ s.date = %q{2009-09-21}
10
10
  s.description = %q{General debugging tool written in Ruby for OSX/Win32/Linux}
11
11
  s.email = %q{td@matasano.com}
12
12
  s.extra_rdoc_files = ["History.txt", "README.rdoc", "README.txt"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tduehr-ragweed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7.1
4
+ version: 0.1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - tduehr, tqbf, struct
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-20 00:00:00 -07:00
12
+ date: 2009-09-21 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency